:root {
  color-scheme: light;
  --ink: #1a1410;
  --ink-2: #3a3028;
  --muted: #7a6d61;
  --line: #e6ddd2;
  --paper: #ffffff;
  --soft: #f7f3ee;
  --deep: #14100c;
  --accent: #b45309;
  --accent-2: #d97706;
  --amber: #b87817;
  --green: #2f7d51;
  --red: #b24635;
  --shadow: 0 18px 48px rgba(20, 16, 12, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(260px, auto) 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(230, 221, 210, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
  font-size: 14px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14px;
}

.site-nav a:hover {
  background: #f3ebe2;
  color: var(--accent);
}

.header-actions,
.hero-actions,
.row-heading,
.filter-bar,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.link-button,
.footer-links button {
  border: 0;
  background: transparent;
}

.link-button {
  padding: 8px 0;
  color: var(--ink-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.button.compact {
  min-height: 40px;
  padding-inline: 16px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: #92400e;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.ghost {
  border-color: #e2c9a8;
  color: var(--accent);
}

.button.full {
  width: 100%;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(590px, 70vh, 760px);
  overflow: hidden;
  background: var(--deep);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 16, 12, 0.92), rgba(20, 16, 12, 0.68) 44%, rgba(20, 16, 12, 0.18)),
    linear-gradient(0deg, rgba(20, 16, 12, 0.78), rgba(20, 16, 12, 0) 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 790px;
  padding: 92px clamp(22px, 6vw, 72px) 148px;
  color: #fff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c78a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 720px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
}

.hero-copy {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-proof {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 24px;
  left: clamp(20px, 5vw, 72px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero-proof div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof span,
.hero-proof strong {
  display: block;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.hero-proof strong {
  color: #fff;
  font-size: 15px;
}

.section {
  padding: 82px clamp(20px, 5vw, 72px);
}

.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.section-heading p,
.account-copy p,
.company-section p {
  color: var(--muted);
}

.row-heading {
  justify-content: space-between;
  max-width: none;
}

.service-grid,
.works-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.work-card,
.process-grid article,
.form-panel,
.status-panel,
.info-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 16, 12, 0.06);
}

.service-card,
.process-grid article {
  padding: 24px;
}

.service-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #f5ebe0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  margin-bottom: 22px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
}

.filter-chip.active,
.filter-chip:hover {
  border-color: var(--accent);
  background: #f8efe4;
  color: var(--accent);
}

.work-card {
  overflow: hidden;
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7ddd2;
}

.work-body {
  padding: 20px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f5ebe0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.status.review {
  background: #fff4df;
  color: var(--amber);
}

.work-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.work-author {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}

.safety-section {
  background: #fff;
}

.process-grid article span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  font-weight: 800;
}

.account-section,
.company-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  background: var(--soft);
}

.publisher-section {
  background: #fff;
}

.status-panel {
  margin-top: 24px;
  padding: 20px;
}

.status-panel strong {
  color: var(--ink);
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #3a3028;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d4c8ba;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(180, 83, 9, 0.18);
  border-color: var(--accent-2);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 400;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.check-line button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
}

.publish-form {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.upload-panel input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.cover-drop {
  display: grid;
  place-items: center;
  min-height: 100%;
  aspect-ratio: 4 / 3;
  border: 1px dashed #c4b19a;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(180, 83, 9, 0.12), rgba(184, 120, 23, 0.1)),
    #faf7f3;
  color: var(--accent);
  font-weight: 800;
}

.cover-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publish-fields {
  box-shadow: none;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3ebe2;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.company-section {
  background: #fff;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 18px;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 6px 0 0;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 22px;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.footer-brand strong,
.footer-brand span,
.footer-records span,
.footer-records a {
  display: block;
}

.footer-brand strong {
  color: #fff;
  font-size: 15px;
}

.footer-links button:hover,
.footer-records a:hover {
  color: #fff;
}

.footer-records {
  text-align: right;
}

.dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(20, 16, 12, 0.58);
}

.dialog-panel {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px;
  background: #fff;
}

.dialog-panel h2 {
  margin-bottom: 4px;
  font-size: 28px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.policy-panel {
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
}

.policy-body {
  color: var(--muted);
}

.policy-body ul {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 14px;
    padding: 12px 18px;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-end;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 76px 20px 246px;
  }

  .hero-proof {
    grid-template-columns: 1fr 1fr;
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .service-grid,
  .works-grid,
  .process-grid,
  .account-section,
  .company-section,
  .publish-form,
  .info-list,
  .form-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-records {
    text-align: left;
  }

  .button,
  .header-actions {
    width: 100%;
  }

  .header-actions .button,
  .header-actions .link-button {
    flex: 1;
  }
}
