:root {
  --forest: #163b30;
  --deep: #102d24;
  --ink: #253e33;
  --clay: #b77758;
  --gold: #c5a875;
  --paper: #fffdfa;
  --cream: #f7f5f0;
  --line: #e4e5dd;
  --muted: #6b746e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font:
    15px/1.65 Inter,
    'Segoe UI',
    'Microsoft YaHei',
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--clay);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--forest);
  padding: 12px 18px;
  background: transparent;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
}
button:hover,
.button:hover {
  background: #e8eeea;
  color: var(--forest);
}
.primary {
  background: var(--forest);
  color: white;
}
.primary:hover {
  background: #255845;
  color: white;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button.small {
  padding: 4px 10px;
}
.danger {
  color: #a13c36;
  border-color: #a13c36;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -70px;
  left: 10px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.container {
  width: min(1220px, calc(100% - 64px));
  margin: auto;
}
.narrow {
  max-width: 900px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  color: var(--clay);
  text-transform: uppercase;
}
h1,
h2,
h3 {
  line-height: 1.17;
}
h1,
h2 {
  font-family: Georgia, 'Microsoft YaHei', serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(34px, 4.5vw, 60px);
  margin: 16px 0 25px;
}
h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin: 12px 0 25px;
}
h3 {
  font-weight: 500;
}
p {
  margin: 0 0 18px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
code,
pre {
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  font-size: 12px;
}
.notice {
  background: var(--deep);
  color: #eee5d5;
  text-align: center;
  padding: 9px 15px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.public-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.logo {
  font:
    italic 36px Georgia,
    serif;
  letter-spacing: -0.06em;
  color: var(--forest);
}
.nav nav {
  display: flex;
  gap: 24px;
  font-size: 12px;
  font-weight: 600;
}
.section {
  padding: 70px 0;
}
.hero {
  background: linear-gradient(110deg, #f6f2e9, #f8f7f2 60%, #e9ebe5);
  overflow: hidden;
}
.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 5.2vw, 72px);
}
h1 em {
  color: var(--clay);
}
.hero p {
  max-width: 530px;
  color: var(--muted);
}
.hero .button {
  margin: 12px 8px 0 0;
}
.hero-meta {
  margin-top: 35px;
  display: flex;
  gap: 20px;
  font-size: 11px;
}
.visual {
  position: relative;
  min-height: 540px;
}
.plate {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    18px 30px 23px #1c2f3433,
    inset 2px 2px 9px #ffffffdd,
    inset -9px -8px 17px #0d281f66;
}
.plate:before {
  content: '';
  position: absolute;
  inset: 12%;
  border: 14px solid #0e261f33;
  border-radius: 50%;
  box-shadow: inset 0 0 20px #0b2c1e44;
}
.plate-a {
  width: 325px;
  right: 30px;
  top: 40px;
  background: radial-gradient(ellipse at 33% 25%, #b9cfc2, #62887b 37%, #2e6154 62%, #183e32 90%);
}
.plate-b {
  width: 215px;
  right: -30px;
  top: 290px;
  background: radial-gradient(ellipse at 40% 20%, #f0d6a8, #b98058 52%, #875438 90%);
}
.plate-c {
  width: 150px;
  left: 0;
  top: 285px;
  background: radial-gradient(circle at 33% 25%, #f1f0db, #c5c0ab 58%, #a4a18b 90%);
}
.stamp {
  position: absolute;
  top: 440px;
  left: 20px;
  background: white;
  padding: 15px 24px;
  transform: rotate(-5deg);
  font:
    18px Georgia,
    serif;
  box-shadow: 0 10px 35px #0001;
}
.service-band {
  padding: 25px 0;
  background: var(--forest);
  color: #eee5d5;
  text-align: center;
  font-size: 12px;
  word-spacing: 4px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category {
  background: #edeee9;
  padding: 22px;
  min-height: 265px;
  display: block;
  border-bottom: 2px solid #d3c2a5;
}
.category:nth-child(2n) {
  background: #f3ebe2;
}
.category h3 {
  font:
    23px Georgia,
    serif;
}
.category span {
  font-size: 11px;
}
.category-symbol {
  text-align: center;
  color: #718477;
  font:
    65px Georgia,
    serif;
  height: 100px;
}
.wash {
  background: var(--cream);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  min-width: 0;
}
.product-art {
  height: 225px;
  background: #eff0eb;
  overflow: hidden;
}
.product-art img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.product-copy {
  padding: 18px;
}
.product-copy h3 {
  font:
    21px Georgia,
    serif;
  margin: 10px 0;
}
.product-copy p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.product-foot {
  border-top: 1px solid var(--line);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.text-button {
  padding: 0;
  border: 0;
  font-size: 11px;
  text-transform: uppercase;
}
.empty {
  padding: 40px;
  border: 1px dashed #abb7ac;
  margin: 20px 0;
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.workflow {
  background: var(--forest);
  color: white;
}
.workflow h2 {
  max-width: 660px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.steps article {
  border-top: 1px solid #fff5;
  padding-top: 22px;
}
.steps b {
  color: var(--gold);
  font:
    36px Georgia,
    serif;
}
.steps p {
  font-size: 13px;
  color: #c3d1c6;
}
footer {
  background: var(--deep);
  color: #c3d1c6;
  padding: 50px 0;
}
footer .logo {
  color: white;
}
footer p {
  max-width: 470px;
  margin-top: 20px;
  font-size: 13px;
}
footer small {
  display: block;
  margin-top: 30px;
  color: #c3d1c6;
}
.filters,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.filters {
  background: var(--cream);
  padding: 24px;
  margin: 30px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
input,
select,
textarea {
  padding: 11px 12px;
  width: 100%;
  border: 1px solid #cbd0c7;
  background: white;
  color: var(--ink);
  border-radius: 3px;
  min-width: 0;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  flex: none;
}
textarea {
  resize: vertical;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.full {
  grid-column: 1/-1;
}
.panel {
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  margin: 22px 0;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 25px 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  margin-top: 35px;
}
.detail-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  background: var(--cream);
}
dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
dt,
dd {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
dt {
  color: var(--muted);
}
.rfq-line {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: center;
  gap: 20px;
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.error {
  color: #a13c36;
}
.notice-box {
  padding: 18px 22px;
  background: #eee9db;
  border-left: 3px solid var(--gold);
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--forest);
  color: white;
  z-index: 100;
  display: none;
}
#toast.visible {
  display: block;
}
.admin {
  background: #f6f7f3;
  font-size: 13px;
}
.sidebar {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--forest);
  color: #dbe7df;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sidebar .logo {
  display: block;
  padding: 30px 24px;
  color: white;
  border-bottom: 1px solid #fff2;
}
.logo span {
  display: block;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 0.12em;
  margin-top: 10px;
}
.sidebar nav {
  padding: 20px 13px;
}
.sidebar nav a {
  display: block;
  padding: 12px 16px;
  color: #c4d2c8;
  border-radius: 3px;
  margin-bottom: 5px;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: #ffffff15;
  color: white;
}
.sidebar p {
  font-size: 11px;
  color: #9cb4a4;
  padding: 24px;
  margin-top: auto;
}
.admin-main {
  margin-left: 235px;
}
.admin-header {
  min-height: 75px;
  border-bottom: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
  padding: 15px 32px;
  font-size: 11px;
  flex-wrap: wrap;
}
.admin-content {
  padding: 35px 36px 60px;
  max-width: 1650px;
  margin: auto;
}
.admin h1 {
  font-family: Georgia, 'Microsoft YaHei', sans-serif;
  font-size: 31px;
}
.admin h2 {
  font-family: inherit;
  font-size: 20px;
  letter-spacing: 0;
}
.admin .eyebrow {
  font-size: 9px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin: 25px 0;
  flex-wrap: wrap;
}
.toolbar form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar input {
  width: auto;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  background: #edf0e9;
  color: #5d6c60;
  font-size: 11px;
  font-weight: 600;
  padding: 14px 18px;
  white-space: nowrap;
}
td {
  border-top: 1px solid var(--line);
  padding: 15px 18px;
  max-width: 390px;
  overflow-wrap: anywhere;
}
td small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
td a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #e8eee7;
  color: #41694f;
  font-size: 11px;
  border-radius: 3px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.kpi-grid .panel {
  margin: 5px 0;
}
.kpi {
  display: block;
  font:
    40px Georgia,
    serif;
  margin-top: 15px;
}
.login {
  max-width: 460px;
  margin: 40px auto;
}
.login button {
  width: 100%;
}
.media-preview {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.media-preview img {
  object-fit: contain;
  background: #e7eadd;
}
.event {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
details {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
}
.category-symbol img {
  height: 85px;
  width: 100px;
  margin-top: 10px;
}
.mega {
  border: 0;
  padding: 0;
}
.mega summary {
  list-style: none;
}
.mega summary::after {
  content: '⌄';
  margin-left: 6px;
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 25px max(24px, calc((100vw - 1220px) / 2));
  background: var(--paper);
  box-shadow: 0 15px 25px #0002;
  max-height: 75vh;
  overflow: auto;
  border-top: 1px solid var(--line);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 20px;
}
.mega-grid a {
  display: block;
  font-size: 11px;
  padding: 5px 0;
}
.mega-grid .mega-title {
  font:
    18px Georgia,
    serif;
  color: var(--forest);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
@media (max-width: 1100px) {
  .product-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav nav {
    gap: 12px;
  }
  .sidebar {
    width: 195px;
  }
  .admin-main {
    margin-left: 195px;
  }
  .admin-content {
    padding: 25px;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .plate-a {
    width: 260px;
  }
  .plate-c {
    left: -10px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {
  .container {
    width: calc(100% - 36px);
  }
  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 0;
  }
  .nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 45px;
  }
  .hero-meta {
    flex-wrap: wrap;
  }
  .visual {
    min-height: 390px;
  }
  .plate-a {
    width: 260px;
    right: 15%;
    top: 30px;
  }
  .plate-b {
    width: 160px;
    right: 6%;
    top: 215px;
  }
  .plate-c {
    width: 130px;
    left: 10%;
    top: 210px;
  }
  .stamp {
    top: 315px;
    left: 14%;
    font-size: 14px;
  }
  .product-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 45px 0;
  }
  .sidebar {
    position: static;
    width: 100%;
    display: block;
  }
  .sidebar .logo {
    padding: 15px 20px;
    font-size: 28px;
  }
  .sidebar .logo span,
  .sidebar p {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
    padding: 8px;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 6px 12px;
    margin: 0;
  }
  .admin-main {
    margin: 0;
  }
  .admin-header {
    padding: 13px 18px;
    gap: 12px;
  }
  .admin-content {
    padding: 22px 16px;
  }
  .rfq-line {
    grid-template-columns: 1fr 1fr;
  }
  .rfq-line strong {
    grid-column: 1/-1;
  }
}
@media (max-width: 480px) {
  .form-grid,
  .filters {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .hero h1 {
    font-size: 43px;
  }
  .hero .button {
    padding: 10px 14px;
  }
  .hero-meta {
    gap: 10px;
  }
  .category {
    padding: 17px;
    min-height: 230px;
  }
  .category h3 {
    font-size: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-art {
    height: 260px;
  }
  .category-grid {
    gap: 10px;
  }
  .nav .logo {
    font-size: 32px;
  }
  .nav .button {
    padding: 8px 12px;
  }
  .nav nav {
    font-size: 10px;
    gap: 10px;
  }
  .steps {
    gap: 18px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar input {
    width: 100%;
  }
  .panel {
    padding: 20px;
  }
  .rfq-line {
    grid-template-columns: 1fr;
  }
  .rfq-line strong {
    grid-column: auto;
  }
  .section-head {
    display: block;
  }
}
.config-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.config-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.8fr);
  gap: 22px;
  align-items: start;
}
.config-layout .panel {
  min-width: 0;
}
.config-layout li {
  padding: 4px 0;
}
.config-layout li small {
  display: block;
}
.config-layout ul {
  padding-left: 20px;
}
.option-editor {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.template-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.template-row label {
  max-width: 190px;
}
.preview-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.preview-nav p {
  font-size: 12px;
  margin: 6px 0;
}
.facet {
  border: 1px solid var(--line);
  padding: 12px;
  min-width: 0;
}
.facet legend {
  font-size: 13px;
  font-weight: 600;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
fieldset:disabled {
  opacity: 0.7;
}
.category p {
  font-size: 11px;
}
.config-tabs .button {
  font-size: 12px;
}
@media (max-width: 950px) {
  .config-layout {
    grid-template-columns: 1fr;
  }
  .preview-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
