:root {
  --red: #bf0035;
  --navy: #233649;
  --ink: #20262a;
  --muted: #626665;
  --line: #d9d8d3;
  --paper: #f8f7f4;
  --white: #fff;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.65 'Microsoft YaHei',
    'PingFang SC',
    Arial,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: auto;
  padding: 20px 4vw;
}
header {
  border-bottom: 1px solid var(--line);
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 36px;
  width: auto;
}
.brand .word {
  height: 18px;
}
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover,
.text:hover {
  color: var(--red);
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 26px 4vw 56px;
  min-height: 75vh;
}
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 345px;
  background: #e9e6e0;
}
.hero-copy {
  padding: clamp(28px, 4.2vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.eyebrow {
  font:
    bold 11px/1.6 Arial,
    sans-serif;
  letter-spacing: 0.16em;
  color: var(--red);
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(43px, 5.8vw, 78px);
  line-height: 1.13;
  letter-spacing: -0.06em;
  margin: 2px 0 18px;
}
.hero p:not(.eyebrow) {
  font-size: 17px;
  max-width: 27em;
  color: #424a4c;
  margin: 0 0 22px;
}
.hero figure {
  margin: 0;
  overflow: hidden;
  background: #c6bab1;
  position: relative;
  min-height: 290px;
}
.hero figure img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.section-head,
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head {
  margin: 34px 0 8px;
}
.section-head h2,
.toolbar h1 {
  margin: 0;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 12px 0 16px;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
}
h3 {
  font-size: 17px;
}
.muted,
small {
  color: var(--muted);
}
.service-list,
.ticket-list {
  border-top: 1px solid var(--line);
}
.service-row,
.ticket-row {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 18px 4px;
}
.service-row:hover,
.ticket-row:hover {
  background: #f0efeb;
}
.index {
  font: 600 13px/1 Arial;
  color: var(--red);
  letter-spacing: 0.12em;
}
.service-row strong {
  font-size: 21px;
  min-width: 6em;
}
.service-row .en {
  font: 11px Arial;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.arrow {
  margin-left: auto;
  color: var(--red);
  font-size: 22px;
}
.btn,
button {
  font: inherit;
  cursor: pointer;
}
.btn,
button:not(.text) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  color: var(--navy);
  min-height: 42px;
}
.primary,
button.primary {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.text {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 3px solid #af6a02;
  outline-offset: 3px;
}
.sheet {
  max-width: 780px;
  margin: 18px auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(18px, 4vw, 38px);
  border-radius: 7px;
}
.sheet.wide {
  max-width: none;
}
.back {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}
.stack {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
}
input,
textarea,
select {
  font: inherit;
  color: var(--ink);
  padding: 10px 12px;
  border: 1px solid #c7cac8;
  border-radius: 4px;
  background: #fff;
  max-width: 100%;
  width: 100%;
}
textarea {
  min-height: 78px;
  resize: vertical;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
form {
  display: grid;
  gap: 15px;
}
.check {
  display: flex;
  align-items: center;
  font-weight: 400;
}
.check input {
  width: auto;
  accent-color: var(--red);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.pill {
  background: #f2e5e8;
  color: #8c0028;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}
.ticket-row {
  flex-wrap: wrap;
  gap: 9px 15px;
}
.ticket-row small {
  margin-left: auto;
}
.empty {
  padding: 32px 0;
  color: var(--muted);
}
.actions,
.stats,
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.filters > * {
  width: auto;
  flex: 1;
  min-width: 120px;
}
.stats > div {
  border-top: 2px solid var(--navy);
  padding: 9px 14px;
  background: white;
  flex: 1;
  min-width: 110px;
}
.stats strong {
  display: block;
  font-size: 23px;
}
.detail-block {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.detail-block p {
  margin: 4px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 16px;
  list-style: none;
}
.timeline li {
  margin: 12px 0;
}
.timeline p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gallery {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
}
.gallery a:focus {
  outline: 2px solid var(--red);
}
#notice {
  position: fixed;
  right: 16px;
  bottom: 20px;
  max-width: 90vw;
  background: var(--navy);
  color: white;
  padding: 12px 18px;
  border-radius: 5px;
  z-index: 3;
}
dialog {
  width: min(94vw, 540px);
  max-height: 88dvh;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
dialog::backdrop {
  background: #17293466;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.error {
  color: var(--red);
  white-space: pre-line;
}
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.role-grid button {
  justify-content: flex-start;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}
#main {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  header,
  footer {
    padding: 14px 18px;
  }
  header {
    min-height: 60px;
  }
  .brand img {
    height: 30px;
  }
  .brand .word {
    height: 13px;
  }
  nav {
    gap: 8px;
  }
  nav a,
  nav button {
    font-size: 12px !important;
  }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 230px;
  }
  .hero-copy {
    padding: 19px 14px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero p:not(.eyebrow) {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .hero figure {
    min-height: 220px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .hero figure img {
    object-fit: cover;
  }
  .hero .btn {
    font-size: 12px;
    padding: 6px 10px;
  }
  main {
    padding: 18px 16px 38px;
  }
  .service-row {
    gap: 12px;
  }
  .service-row strong {
    min-width: 4em;
    font-size: 18px;
  }
  .service-row .en {
    display: none;
  }
  .service-row .muted {
    font-size: 13px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .sheet {
    margin: 8px auto;
  }
  .ticket-row small {
    width: 100%;
    margin: 0;
  }
  .section-head {
    margin-top: 24px;
  }
  .section-head h2 {
    font-size: 19px;
  }
  .toolbar {
    align-items: center;
  }
}
