:root {
  --ink: #172a43;
  --ink-soft: #526378;
  --blue: #1d4e89;
  --blue-deep: #17365f;
  --blue-pale: #eaf2fb;
  --line: #dce4ed;
  --paper: #ffffff;
  --canvas: #f5f7fa;
  --mint: #e5f5ee;
  --mint-ink: #176a4b;
  --amber: #fff2cf;
  --amber-ink: #966200;
  --rose: #ffe9e8;
  --rose-ink: #a33b37;
  --shadow: 0 15px 35px rgba(23, 54, 95, .08);
  --radius: 14px;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-wrap { width: min(calc(100% - 48px), var(--content)); height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 19px; font-weight: 750; letter-spacing: -.035em; }
.brand small { display: block; margin-top: -3px; color: #718195; font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--blue); color: white; font-family: Georgia, serif; font-size: 23px; font-style: italic; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 24px; color: #627286; font-size: 14px; font-weight: 650; }
.main-nav > a:not(.button):hover, .main-nav > a.active { color: var(--blue); }
.user-status { color: #627286; font-size: 12px; font-weight: 650; white-space: nowrap; }
.logout-form { margin: 0; }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; transition: .16s ease; }
.button:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(29, 78, 137, .2); }
.button-small { min-height: 35px; padding: 0 13px; border-radius: 7px; font-size: 13px; }
.button-secondary { border-color: #c8d4e2; background: #fff; color: var(--blue); }
.button-secondary:hover { background: var(--blue-pale); border-color: #adc5df; color: var(--blue-deep); box-shadow: none; }
.button-plain { border-color: transparent; background: transparent; color: var(--ink-soft); }
.button-plain:hover { border-color: transparent; background: #edf1f5; color: var(--ink); box-shadow: none; }

.flash-wrap { position: fixed; z-index: 10; top: 84px; left: 50%; width: min(calc(100% - 32px), 620px); transform: translateX(-50%); }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; padding: 12px 14px 12px 16px; border-radius: 9px; box-shadow: var(--shadow); font-weight: 600; }
.flash-success { background: #ecfaf3; color: #176745; border: 1px solid #bde8d1; }
.flash-error { background: #fff2f1; color: #a13e39; border: 1px solid #f0c6c3; }
.flash-close { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: currentColor; font-size: 22px; line-height: 1; }
.flash-close:hover { background: rgba(0,0,0,.06); }

.search-hero { position: relative; overflow: hidden; padding: 83px 24px 70px; background: var(--ink); color: #fff; }
.search-hero::before { content: ""; position: absolute; top: -290px; right: -150px; width: 710px; height: 710px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.025); }
.search-hero::after { content: ""; position: absolute; right: 22%; bottom: -3px; width: 44px; height: 5px; background: #85b6e8; }
.hero-inner { position: relative; z-index: 1; width: min(100%, 900px); margin: auto; text-align: center; }
.eyebrow { margin: 0 0 9px; color: #758aa3; font-size: 10px; font-weight: 800; letter-spacing: .13em; line-height: 1.3; }
.search-hero .eyebrow { color: #a9c6e5; }
.search-hero h1 { margin: 0; font-size: clamp(39px, 5vw, 61px); font-weight: 730; letter-spacing: -.06em; line-height: 1.08; }
.search-hero h1 em { color: #9fc8f2; font-family: Georgia, "Songti SC", serif; font-weight: 400; }
.hero-copy { max-width: 550px; margin: 20px auto 30px; color: #ccdae9; font-size: 16px; }
.search-box { position: relative; display: flex; max-width: 770px; margin: auto; padding: 6px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.17); }
.search-box input { width: 100%; min-width: 0; height: 53px; padding: 0 18px 0 50px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.search-box input::placeholder { color: #a2afbd; }
.search-icon { position: absolute; top: 23px; left: 23px; width: 21px; fill: none; stroke: #8191a4; stroke-linecap: round; stroke-width: 1.8; }
.search-button { min-width: 142px; border-radius: 8px; }
.search-button span { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font-size: 11px; }
.quick-searches { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 17px; color: #acc1d7; font-size: 12px; }
.quick-searches a { padding: 3px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; color: #d8e5f2; }
.quick-searches a:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.07); }

.page-section { width: min(calc(100% - 48px), var(--content)); margin-left: auto; margin-right: auto; }
.home-content { padding-top: 48px; padding-bottom: 70px; }
.overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.overview-card { min-height: 154px; padding: 22px 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 6px 18px rgba(23,54,95,.035); }
.overview-card-link { display: block; transition: .16s ease; }
.overview-card-link:hover { border-color: #afc9e5; box-shadow: var(--shadow); cursor: pointer; transform: translateY(-2px); }
.overview-card span { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 650; }
.overview-card strong { display: block; margin-top: 2px; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 39px; font-weight: 500; letter-spacing: -.045em; line-height: 1.22; }
.overview-card small { display: block; margin-top: 7px; color: #8795a6; font-size: 12px; }
.accent-card { border-color: #c3d7ed; background: var(--blue-pale); }
.accent-card strong { color: var(--blue); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 25px; letter-spacing: -.045em; line-height: 1.2; }
.recent-heading { margin-top: 54px; }
.result-heading { margin-bottom: 24px; }
.result-count { color: #76869a; font-size: 13px; font-weight: 600; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 750; }
.text-link span { margin-left: 5px; }
.text-link:hover { color: var(--blue-deep); }
.result-list { display: grid; gap: 10px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 92px; padding: 17px 23px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); transition: .16s ease; }
.result-card:hover { border-color: #afc9e5; box-shadow: var(--shadow); transform: translateY(-2px); }
.result-main h3 { margin: 0; color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 19px; letter-spacing: -.025em; }
.result-main p { margin: 3px 0 0; color: #52647a; font-size: 14px; font-weight: 600; }
.result-main p span { margin: 0 5px; color: #bdc7d1; }
.result-main small { display: block; margin-top: 2px; color: #8794a3; font-size: 12px; }
.result-main .search-match-reason { color: #5c7897; }
.result-card .result-main { min-width: 0; flex: 1; }
.arrow-link { flex: 0 0 auto; color: #6d7e93; font-size: 13px; font-weight: 650; white-space: nowrap; }
.arrow-link b { margin-left: 6px; color: var(--blue); font-size: 17px; }
.compact-list .result-card { min-height: 88px; }
.search-result-image, .product-thumbnail { display: block; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid #dce4ed; border-radius: 9px; background: #eef2f6; object-fit: cover; object-position: center; cursor: zoom-in; }
.empty-state { padding: 65px 25px; border: 1px dashed #b8c7d5; border-radius: var(--radius); background: #fbfcfd; text-align: center; }
.empty-icon { margin-bottom: 8px; color: var(--blue); font-family: Georgia, serif; font-size: 43px; line-height: 1; }
.empty-state h3 { margin: 0; font-size: 20px; }
.empty-state p { margin: 6px auto 22px; color: var(--ink-soft); }
.slim-empty { padding: 45px 25px; }
.product-list-page { padding-top: 46px; padding-bottom: 76px; }
.product-list-heading { align-items: center; margin-bottom: 25px; }
.product-list-heading h1 { margin: 0; color: var(--ink); font-size: 32px; letter-spacing: -.055em; }
.product-list-heading p:not(.eyebrow) { margin: 5px 0 0; color: #718297; font-size: 14px; }
.product-list-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.product-filter { display: flex; align-items: end; gap: 12px; margin: 0 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.product-filter label { display: block; flex: 0 1 240px; }
.product-filter label > span { display: block; margin-bottom: 6px; color: #52647a; font-size: 12px; font-weight: 750; }
.product-filter select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #cdd8e4; border-radius: 7px; outline: none; background: #fff; color: var(--ink); }
.product-filter select:focus { border-color: #5d99d4; box-shadow: 0 0 0 3px rgba(93,153,212,.15); }
.product-filter select:disabled { background: #f3f6f8; color: #8794a3; cursor: not-allowed; }
.product-filter-actions { display: flex; gap: 7px; }
.product-list-cards { display: grid; gap: 10px; }
.product-list-card { display: flex; min-height: 104px; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); transition: .16s ease; }
.product-list-card:hover { border-color: #afc9e5; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-list-thumbnail { display: block; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid #dce4ed; border-radius: 9px; background: #eef2f6; object-fit: cover; object-position: center; cursor: zoom-in; }
.product-list-placeholder { display: grid; place-items: center; color: #9babbb; font-size: 25px; }
.product-list-main { min-width: 0; flex: 1; }
.product-list-main h2 { margin: 0; color: var(--blue); font-size: 18px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.product-list-main p { margin: 3px 0 0; color: #52647a; font-size: 14px; font-weight: 650; }
.product-list-main p span { margin: 0 5px; color: #bdc7d1; }
.product-list-main small { display: block; margin-top: 2px; color: #8794a3; font-size: 12px; }
.customer-list-page { padding-top: 46px; padding-bottom: 76px; }
.customer-list-heading { align-items: center; margin-bottom: 20px; }
.customer-list-heading h1 { margin: 0; color: var(--ink); font-size: 32px; letter-spacing: -.055em; }
.customer-list-heading p:not(.eyebrow) { margin: 5px 0 0; color: #718297; font-size: 14px; }
.customer-search { display: flex; gap: 8px; max-width: 580px; margin: 0 0 20px; }
.customer-search input { min-width: 0; flex: 1; }
.customer-list-cards { display: grid; gap: 10px; }
.customer-list-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.customer-list-main { min-width: 0; }
.customer-list-main h2 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.customer-list-main h2 a { color: var(--blue); }
.customer-list-main p { margin: 3px 0 0; color: #52647a; font-size: 14px; font-weight: 650; }
.customer-list-main small, .customer-list-meta small { display: block; margin-top: 3px; color: #8794a3; font-size: 12px; }
.customer-list-main small span { margin: 0 5px; color: #bdc7d1; }
.customer-list-meta { display: grid; justify-items: end; gap: 8px; flex: 0 0 auto; }
.customer-select-row { display: flex; gap: 8px; align-items: center; }
.customer-select-row select { min-width: 0; flex: 1; }
.field-hint { display: block; margin-top: 6px; color: #7c8a99; font-size: 12px; }
.customer-detail-title { align-items: flex-start; }
.customer-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 0; }
.customer-details div { min-width: 0; }
.customer-details .full { grid-column: 1 / -1; }
.customer-details dt { color: #8290a0; font-size: 12px; font-weight: 750; }
.customer-details dd { margin: 4px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination a, .pagination span { min-width: 34px; padding: 5px 9px; border: 1px solid #d5e0eb; border-radius: 7px; color: #52708e; font-size: 13px; text-align: center; }
.pagination a:hover, .pagination a.current { border-color: var(--blue); background: var(--blue); color: #fff; }
.pagination .disabled { color: #a8b3c0; background: #f5f7fa; }
.pagination .ellipsis { min-width: auto; padding-left: 2px; padding-right: 2px; border: 0; }

.detail-hero { border-bottom: 1px solid #203e66; background: linear-gradient(115deg, #142a47, #1e4d87); color: #fff; }
.detail-hero-inner { padding-top: 29px; padding-bottom: 43px; }
.back-link { display: inline-block; color: #b9d0e8; font-size: 13px; font-weight: 650; }
.back-link:hover { color: #fff; }
.detail-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 36px; }
.product-detail-header { display: flex; align-items: flex-end; gap: 24px; margin-top: 36px; }
.product-detail-main { min-width: 0; flex: 1 1 auto; }
.product-detail-main h1 { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.1; }
.product-detail-main .eyebrow { color: #8eb7df; }
.product-detail-side { display: grid; flex: 0 0 220px; gap: 18px; align-self: stretch; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.22); }
.product-detail-prices { display: grid; align-content: start; gap: 13px; }
.product-detail-price-item { display: grid; gap: 2px; }
.product-detail-price-label { color: #b9d0e8; font-size: 12px; font-weight: 650; }
.product-detail-price-value { color: #ff837c; font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.product-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-self: end; gap: 9px; }
.product-detail-actions .button-secondary { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.product-detail-actions .button-secondary:hover { background: rgba(255,255,255,.13); color: #fff; }
.hero-image { display: block; flex: 0 0 auto; width: 112px; height: 112px; overflow: hidden; padding: 0; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; background: rgba(255,255,255,.12); cursor: zoom-in; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-title-row h1 { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.055em; line-height: 1.1; }
.detail-title-row .eyebrow { color: #8eb7df; }
.chip-subtitle { margin: 9px 0 0; color: #d8e7f4; font-size: 17px; font-weight: 650; }
.chip-subtitle span { margin: 0 7px; color: #91b3d4; }
.chip-purpose { margin: 4px 0 0; color: #aac5de; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.hero-actions .button-secondary { border-color: rgba(255,255,255,.35); background: transparent; color: #fff; }
.hero-actions .button-secondary:hover { background: rgba(255,255,255,.13); color: #fff; }
.inline-form { display: inline-flex; margin: 0; }
.detail-content { padding-top: 42px; padding-bottom: 76px; }
.information-block { margin-top: 48px; }
.information-block:first-child { margin-top: 0; }
.basic-block { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 7px 19px rgba(23,54,95,.025); }
.basic-block .section-heading { margin-bottom: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.info-grid > div { min-height: 89px; padding: 14px 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info-grid span { display: block; margin-bottom: 5px; color: #8291a3; font-size: 11px; font-weight: 750; letter-spacing: .04em; }
.info-grid strong { color: #2b3d54; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.info-grid .wide { grid-column: span 2; }
.info-grid .prose-cell, .info-grid .note-cell { min-height: 112px; }
.info-grid p { margin: 0; color: #506176; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.note-cell { background: #fffbef; }
.section-heading-actions { align-items: center; }
.price-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
.price-card { min-height: 137px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.price-card span { display: block; color: #65778c; font-size: 13px; font-weight: 650; }
.price-card strong { display: block; margin-top: 4px; color: #283b53; font-family: Georgia, "Songti SC", serif; font-size: 30px; font-weight: 500; letter-spacing: -.045em; line-height: 1.2; }
.hero-price-summary { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 12px; color: #bdd2e8; font-size: 12px; }
.hero-price-summary b, .price-latest-line b, .card-price-lines b { color: #c84f48; font-weight: 800; }
.price-latest-line { margin: 0 0 14px; color: #718297; font-size: 13px; }
.card-price-lines { display: block; margin-top: 5px; color: #718297; font-size: 11px; line-height: 1.5; }
.price-card small { display: block; margin-top: 6px; color: #8291a3; font-size: 11px; }
.primary-price { border-color: #9ebfe4; background: linear-gradient(130deg, #edf5ff, #f7fbff); }
.primary-price strong { color: var(--blue); font-size: 36px; }
.sale-prices .primary-price { border-color: #95d5b7; background: linear-gradient(130deg, #ecfaf3, #f7fdf9); }
.sale-prices .primary-price strong { color: #16744c; }
.currency-note { margin: 10px 1px 11px; color: #8996a6; font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: left; }
th { padding: 12px 15px; border-bottom: 1px solid var(--line); background: #f8fafc; color: #718297; font-size: 11px; font-weight: 800; letter-spacing: .045em; white-space: nowrap; }
td { padding: 14px 15px; border-bottom: 1px solid #e9edf2; color: #415369; font-size: 13px; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
th.number, td.number { text-align: right; font-variant-numeric: tabular-nums; }
td.price-value { color: #233b5c; font-weight: 750; }
td.customer-cell { color: #2c4565; font-weight: 650; }
.customer-demand-contact { display: grid; min-width: 130px; gap: 2px; }
.customer-demand-name { color: #2c4565; font-weight: 700; line-height: 1.35; }
a.customer-demand-name:hover { color: var(--blue); }
.customer-demand-meta { display: flex; flex-wrap: wrap; gap: 0; color: #7b8b9d; font-size: 11px; font-weight: 500; line-height: 1.35; }
.customer-demand-meta span + span::before { content: "·"; margin: 0 5px; color: #b3c0cc; }
.actions-cell { min-width: 142px; }
.record-actions { display: flex; gap: 6px; align-items: center; }
.record-actions form { display: inline-flex; margin: 0; }
.record-actions .button { min-height: 30px; padding: 0 9px; font-size: 12px; }
.images-block { padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.image-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.image-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.image-card.is-primary { border-color: #8bb9e4; box-shadow: 0 0 0 2px #e6f1fb; }
.image-thumbnail { display: block; width: 100%; height: 178px; padding: 0; border: 0; background: #eff3f7; cursor: zoom-in; }
.image-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.image-thumbnail:hover img { transform: scale(1.03); }
.image-card-body { padding: 12px; }
.image-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.image-type, .primary-tag { display: inline-block; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.image-type { background: #edf2f7; color: #5d7187; }
.primary-tag { background: var(--blue-pale); color: var(--blue); }
.image-card-body p { min-height: 22px; margin: 8px 0 2px; color: #40536a; font-size: 13px; overflow-wrap: anywhere; }
.image-card-body small { color: #8896a6; font-size: 11px; }
.image-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.image-actions form { display: inline-flex; margin: 0; }
.image-actions .button { min-height: 30px; padding: 0 8px; font-size: 11px; }
.image-lightbox { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(10, 23, 40, .82); }
.image-lightbox-image { display: block; max-width: 95vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 55px rgba(0,0,0,.45); object-fit: contain; }
.image-lightbox-close { position: fixed; top: 18px; right: 18px; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(21,38,61,.8); color: #fff; font-size: 26px; line-height: 1; }
.image-lightbox-close:hover { background: #fff; color: var(--ink); }
.empty-inline { padding: 29px 26px; border: 1px dashed #bdc9d5; border-radius: 10px; background: #fbfcfd; }
.empty-inline p { margin: 0; color: #4d6076; font-weight: 750; }
.empty-inline span { color: #8291a3; font-size: 13px; }
.requirements-block { padding: 29px; border: 1px solid #c9dced; border-radius: var(--radius); background: #f2f8fd; }
.demand-summary { display: grid; grid-template-columns: 1fr 1.2fr 2.1fr; gap: 0; margin-bottom: 20px; border: 1px solid #bed6eb; border-radius: 10px; overflow: hidden; background: #fff; }
.demand-summary > div { padding: 15px 19px; border-right: 1px solid #d4e2ef; }
.demand-summary span { display: block; color: #63788e; font-size: 12px; font-weight: 650; }
.demand-summary strong { display: block; margin-top: 2px; color: var(--blue); font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 500; line-height: 1.2; }
.demand-summary strong small { font-family: inherit; font-size: 14px; }
.demand-summary p { align-self: center; margin: 0; padding: 15px 20px; color: #71869b; font-size: 13px; }
.status { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #eef2f6; color: #64748b; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-待报价 { background: var(--amber); color: var(--amber-ink); }
.status-已报价 { background: var(--blue-pale); color: #27649d; }
.status-跟进中 { background: #e7f3ff; color: #1f649d; }
.status-已成交 { background: var(--mint); color: var(--mint-ink); }
.status-未成交 { background: var(--rose); color: var(--rose-ink); }
.button-danger { border-color: #b94e48; background: #b94e48; white-space: nowrap; }
.button-danger:hover { border-color: #963d38; background: #963d38; }
.customer-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin: 34px 0 0; }
.customer-detail-title h1 { margin: 0; color: var(--ink); font-size: clamp(31px, 4vw, 42px); letter-spacing: -.055em; line-height: 1.12; }
.customer-detail-title p:not(.eyebrow) { margin: 7px 0 0; color: #62748a; }
.customer-detail-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.customer-detail-actions form { display: flex; margin: 0; }
.customer-detail-actions .button { min-height: 38px; padding: 0 15px; }
.customer-detail-actions .button-danger { border-color: #d49a97; background: #fff; color: #a33f3a; }
.customer-detail-actions .button-danger:hover { border-color: #c97570; background: #fff2f1; color: #8f332f; }
.hero-actions .button-danger-outline { border-color: rgba(255, 190, 187, .75); background: transparent; color: #fff; }
.hero-actions .button-danger-outline:hover { border-color: #e76b65; background: rgba(185, 78, 72, .22); color: #fff; }

.narrow-page { width: min(calc(100% - 48px), 800px); padding-top: 38px; padding-bottom: 78px; }
.dark-back { color: #59738e; }
.dark-back:hover { color: var(--blue); }
.form-heading { margin: 30px 0 28px; }
.form-heading h1 { margin: 0; font-size: 32px; letter-spacing: -.055em; line-height: 1.2; }
.form-heading p:not(.eyebrow) { margin: 8px 0 0; color: #62748a; }
.data-form { padding: 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-notes { margin-top: 28px; }
.field { display: block; }
.field.full { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 7px; color: #354a64; font-size: 13px; font-weight: 750; }
.required-field > span::after { content: " *"; color: #c4544d; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cdd8e4; border-radius: 7px; outline: none; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input, .field select { height: 42px; padding: 0 11px; }
.field textarea { display: block; padding: 10px 11px; line-height: 1.55; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #5d99d4; box-shadow: 0 0 0 3px rgba(93,153,212,.15); }
.field input[readonly] { border-color: #dce4ed; background: #f3f6f8; color: #65788f; cursor: not-allowed; }
.field small { display: block; margin-top: 5px; color: #8391a2; font-size: 11px; }
.weight-input { display: flex; align-items: stretch; }
.weight-input input { border-radius: 7px 0 0 7px; }
.weight-input b { display: grid; width: 46px; place-items: center; border: 1px solid #cdd8e4; border-left: 0; border-radius: 0 7px 7px 0; background: #f5f8fb; color: #64778d; font-size: 13px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 29px; padding-top: 20px; border-top: 1px solid #e7ecf1; }
.ai-lookup-progress { margin: 13px 0 0; color: var(--blue); font-size: 13px; font-weight: 700; text-align: right; }
.ai-info-block { margin-top: 22px; padding: 18px 20px; border: 1px solid #c9dced; border-radius: 10px; background: #f6faff; }
.ai-info-block h2 { margin: 0; color: var(--ink); font-size: 18px; }
.ai-info-block ul { display: grid; gap: 7px; margin: 12px 0 0; padding-left: 19px; color: #52677e; font-size: 13px; }
.ai-info-block a { color: var(--blue); font-weight: 700; overflow-wrap: anywhere; }
.ai-info-block small { margin-left: 7px; color: #8492a2; }
.ai-warnings { border-color: #ead8a5; background: #fffaf0; }
.login-page { display: grid; min-height: calc(100vh - 210px); place-items: center; padding-top: 52px; padding-bottom: 72px; }
.login-card { width: min(100%, 455px); }
.login-card > h1 { margin: 4px 0 0; color: var(--ink); font-size: 34px; letter-spacing: -.055em; }
.login-card > p:not(.eyebrow) { margin: 9px 0 23px; color: #62748a; font-size: 14px; line-height: 1.6; }
.login-form { padding: 25px; }
.login-form .field + .field { margin-top: 18px; }
.login-form .form-actions { margin-top: 24px; }
.login-form .button { min-width: 120px; }
.preset-attribute-editor, .attribute-editor { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; }
.preset-attribute-editor { border-color: #c9dced; background: #f2f8fd; }
.preset-attribute-editor .section-heading, .attribute-editor .section-heading { margin-bottom: 6px; }
.preset-attribute-editor .section-heading h2, .attribute-editor .section-heading h2 { font-size: 20px; }
.attribute-help { margin: 0 0 15px; color: #718297; font-size: 12px; }
.preset-attribute-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.preset-attribute-field { min-width: 0; }
.preset-input-with-unit { display: flex; align-items: stretch; }
.preset-input-with-unit input { min-width: 0; border-radius: 7px 0 0 7px; }
.preset-input-with-unit b { display: grid; min-width: 48px; place-items: center; padding: 0 10px; border: 1px solid #cdd8e4; border-left: 0; border-radius: 0 7px 7px 0; background: #f5f8fb; color: #64778d; font-size: 13px; font-weight: 700; white-space: nowrap; }
.attribute-rows { display: grid; gap: 8px; }
.attribute-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) 34px; gap: 8px; }
.attribute-row input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #cdd8e4; border-radius: 7px; outline: none; background: #fff; color: var(--ink); }
.attribute-row input:focus { border-color: #5d99d4; box-shadow: 0 0 0 3px rgba(93,153,212,.15); }
.attribute-remove { height: 39px; border: 1px solid #ead0cf; border-radius: 7px; background: #fff6f5; color: #a33b37; font-size: 20px; line-height: 1; }
.attribute-remove:hover { background: #ffe9e8; }
.new-product-images { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfd; }
.new-product-images-top { margin-top: 0; margin-bottom: 28px; }
.new-product-images .section-heading { margin-bottom: 6px; }
.new-product-images .section-heading h2 { font-size: 20px; }
.image-upload-picker { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid #c8d4e2; border-radius: 7px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 700; cursor: pointer; }
.image-upload-picker:hover { border-color: #adc5df; background: var(--blue-pale); }
.image-upload-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.new-product-image-previews { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.new-product-image-preview { position: relative; flex: 0 0 80px; width: 80px; height: 80px; overflow: hidden; border: 1px solid #d5e0eb; border-radius: 9px; background: #eef2f6; }
.new-product-image-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.new-product-image-remove { position: absolute; top: 4px; right: 4px; display: grid; width: 22px; height: 22px; place-items: center; border: 0; border-radius: 50%; background: rgba(30, 45, 65, .78); color: #fff; font-size: 18px; line-height: 1; }
.new-product-image-remove:hover { background: #a33b37; }
.import-step + .import-step { margin-top: 28px; padding-top: 25px; border-top: 1px solid #e3eaf1; }
.import-step .section-heading { margin-bottom: 14px; }
.import-step .section-heading h2 { font-size: 20px; }
.excel-upload-picker { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid #c8d4e2; border-radius: 8px; background: #fff; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; }
.excel-upload-picker:hover { border-color: #adc5df; background: var(--blue-pale); }
.excel-upload-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.product-import-preview-page { padding-top: 38px; padding-bottom: 76px; }
.import-preview-heading { align-items: center; margin-top: 30px; }
.import-preview-heading h1 { margin: 0; color: var(--ink); font-size: 32px; letter-spacing: -.055em; }
.import-preview-heading p:not(.eyebrow) { margin: 5px 0 0; color: #718297; font-size: 14px; }
.import-summary-grid { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid #d6e1eb; border-radius: 11px; background: var(--paper); }
.import-summary-grid > div { min-width: 0; padding: 16px 18px; border-right: 1px solid #e0e7ee; }
.import-summary-grid > div:last-child { border-right: 0; }
.import-summary-grid span { display: block; color: #6c7f93; font-size: 12px; font-weight: 700; }
.import-summary-grid strong { display: block; margin-top: 2px; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 500; line-height: 1.2; }
.import-summary-grid .import-ready strong { color: var(--mint-ink); }
.import-summary-grid .import-warning strong { color: var(--amber-ink); }
.import-summary-grid .import-skip strong { color: #66778b; }
.import-summary-grid .import-invalid strong { color: var(--rose-ink); }
.import-mapping-card { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.import-mapping-card .section-heading { align-items: center; margin-bottom: 15px; }
.import-mapping-card h2 { margin: 0; color: var(--ink); font-size: 21px; }
.import-mapping-card p:not(.eyebrow) { margin: 4px 0 0; color: #718297; font-size: 12px; }
.mapping-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.mapping-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 1.15fr); align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid #e0e7ee; border-radius: 8px; background: #fafcfe; }
.mapping-row > span { overflow-wrap: anywhere; color: #3a526d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; }
.mapping-row select { width: 100%; height: 38px; min-width: 0; padding: 0 9px; border: 1px solid #cdd8e4; border-radius: 7px; outline: none; background: #fff; color: var(--ink); }
.mapping-row select:focus { border-color: #5d99d4; box-shadow: 0 0 0 3px rgba(93,153,212,.15); }
.import-preview-table-form { margin-top: 22px; }
.import-preview-table-wrap { border-radius: 11px; border: 1px solid var(--line); background: var(--paper); }
.import-preview-table { min-width: 760px; }
.import-preview-table td:last-child { min-width: 210px; color: #65778a; }
.import-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.import-status-ready { background: var(--mint); color: var(--mint-ink); }
.import-status-warning { background: var(--amber); color: var(--amber-ink); }
.import-status-existing, .import-status-duplicate { background: #edf1f5; color: #627286; }
.import-status-invalid { background: var(--rose); color: var(--rose-ink); }
.import-row-existing, .import-row-duplicate { opacity: .72; }
.product-import-result-page { padding-top: 80px; padding-bottom: 110px; }
.import-result-card .import-summary-grid { margin: 0; grid-template-columns: repeat(4, 1fr); }
.error-page { min-height: 65vh; padding-top: 110px; text-align: center; }
.error-page h1 { margin: 0; font-size: 38px; letter-spacing: -.055em; }
.error-page p:not(.eyebrow) { margin: 10px auto 24px; color: var(--ink-soft); }

.site-footer { display: flex; width: min(calc(100% - 48px), var(--content)); justify-content: space-between; margin: 0 auto; padding: 23px 0 30px; border-top: 1px solid #dce4ed; color: #8a97a7; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .nav-wrap, .page-section, .site-footer, .narrow-page { width: min(calc(100% - 30px), var(--content)); }
  .nav-wrap { height: 65px; }
  .brand { flex: 0 0 auto; gap: 8px; font-size: 17px; }
  .brand small, .user-status { display: none; }
  .main-nav { flex: 1 1 auto; min-width: 0; gap: 10px; margin-left: 12px; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav > * { flex: 0 0 auto; }
  .main-nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 35px; }
  .search-hero { padding: 62px 15px 56px; }
  .search-hero h1 { font-size: 40px; }
  .hero-copy { font-size: 14px; }
  .search-box { display: block; padding: 5px; }
  .search-box input { height: 49px; padding-left: 43px; font-size: 15px; }
  .search-icon { top: 20px; left: 19px; }
  .search-button { width: 100%; min-height: 45px; }
  .search-button span { display: none; }
  .overview-grid { grid-template-columns: 1fr; gap: 10px; }
  .overview-card { min-height: 111px; padding: 17px 20px; }
  .overview-card strong { font-size: 32px; }
  .overview-card small { margin-top: 0; }
  .home-content { padding-top: 30px; }
  .product-list-page { padding-top: 31px; padding-bottom: 55px; }
  .product-list-heading { align-items: flex-start; }
  .product-filter { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .product-filter label { max-width: none; }
  .product-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .product-filter-actions .button { width: 100%; }
  .product-list-card { min-height: 82px; gap: 12px; padding: 13px 15px; }
  .product-list-thumbnail { flex-basis: 56px; width: 56px; height: 56px; border-radius: 8px; }
  .product-list-main h2 { font-size: 16px; }
  .product-list-main p { font-size: 13px; }
  .customer-list-page { padding-top: 31px; padding-bottom: 55px; }
  .customer-list-heading { align-items: flex-start; }
  .customer-search { flex-wrap: wrap; }
  .customer-search input { flex-basis: 100%; }
  .customer-list-card { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 15px; }
  .customer-list-meta { justify-items: start; }
  .customer-select-row { align-items: stretch; flex-direction: column; }
  .customer-select-row .button { align-self: flex-start; }
  .customer-details { grid-template-columns: 1fr; }
  .customer-details .full { grid-column: auto; }
  .customer-detail-title { flex-direction: column; gap: 16px; margin-top: 29px; }
  .customer-detail-actions { justify-content: flex-start; }
  .recent-heading { margin-top: 39px; }
  .section-heading h2 { font-size: 22px; }
  .result-card { min-height: 82px; padding: 14px 16px; }
  .compact-list .result-card { min-height: 76px; }
  .search-result-image, .product-thumbnail { flex-basis: 56px; width: 56px; height: 56px; border-radius: 8px; }
  .arrow-link { font-size: 0; }
  .arrow-link b { font-size: 20px; }
  .detail-title-row, .product-detail-header { display: block; margin-top: 29px; }
  .product-detail-side { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 22px; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.22); border-left: 0; }
  .product-detail-prices { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-detail-actions { justify-content: flex-start; }
  .hero-image { width: 90px; height: 90px; margin-bottom: 17px; }
  .hero-actions { justify-content: flex-start; margin-top: 22px; }
  .detail-hero-inner { padding-bottom: 30px; }
  .basic-block, .requirements-block, .data-form { padding: 19px; }
  .information-block { margin-top: 37px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid .wide { grid-column: span 2; }
  .price-grid { grid-template-columns: 1fr; gap: 8px; }
  .price-card { min-height: 110px; padding: 15px 17px; }
  .price-card strong, .primary-price strong { font-size: 29px; }
  .section-heading-actions { align-items: flex-start; }
  .section-heading-actions .button-small { margin-top: 4px; }
  .demand-summary { grid-template-columns: 1fr 1fr; }
  .demand-summary > div { padding: 13px; }
  .demand-summary p { grid-column: 1 / -1; padding: 11px 13px; border-top: 1px solid #d4e2ef; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .field.full { grid-column: auto; }
  .product-list-actions { width: 100%; }
  .product-list-actions .button { flex: 1; }
  .images-block { padding: 19px; }
  .image-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .image-thumbnail { height: 145px; }
  .form-actions { justify-content: stretch; }
  .form-actions .button { flex: 1; }
  .login-page { min-height: calc(100vh - 185px); padding-top: 35px; padding-bottom: 48px; }
  .preset-attribute-editor, .attribute-editor { padding: 16px; }
  .preset-attribute-fields { grid-template-columns: 1fr; gap: 17px; }
  .new-product-images { padding: 16px; }
  .new-product-image-preview { flex-basis: 64px; width: 64px; height: 64px; border-radius: 8px; }
  .import-summary-grid, .import-result-card .import-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .import-summary-grid > div:nth-child(2n) { border-right: 0; }
  .import-summary-grid > div:nth-child(n + 3) { border-top: 1px solid #e0e7ee; }
  .mapping-rows { grid-template-columns: 1fr; }
  .mapping-row { grid-template-columns: 1fr; gap: 6px; }
  .import-mapping-card { padding: 16px; }
  .attribute-row { grid-template-columns: 1fr 1fr 34px; gap: 6px; }
  .site-footer { gap: 8px; padding: 19px 0 24px; }
}

@media (max-width: 420px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .main-nav .button { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .detail-title-row h1, .product-detail-main h1 { font-size: 30px; }
  .chip-subtitle { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .inline-form { width: 100%; }
  .product-detail-actions .button, .product-detail-actions .inline-form { width: 100%; }
  .customer-detail-actions { width: 100%; }
  .customer-detail-actions > a, .customer-detail-actions form { flex: 1 1 130px; }
  .customer-detail-actions .button { width: 100%; }
  .image-grid { grid-template-columns: 1fr; }
  .import-summary-grid { grid-template-columns: 1fr; }
  .import-summary-grid > div { border-right: 0; border-top: 1px solid #e0e7ee; }
  .import-summary-grid > div:first-child { border-top: 0; }
  .info-grid { grid-template-columns: 1fr; }
  .info-grid .wide { grid-column: auto; }
  .site-footer { display: block; }
  .site-footer span { display: block; }
}
