:root {
  --ink: #182026;
  --muted: #66737d;
  --line: #dce5e2;
  --paper: #f7faf8;
  --white: #ffffff;
  --green: #16805f;
  --green-dark: #0c5f48;
  --coral: #d95f43;
  --gold: #d69522;
  --blue: #246b9b;
  --shadow: 0 20px 55px rgba(21, 36, 32, 0.14);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 226, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--coral));
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #34434c;
  font-size: 15px;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.main-nav a:hover {
  background: #edf4f1;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100svh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 20, 17, 0.74) 0%, rgba(5, 20, 17, 0.48) 44%, rgba(5, 20, 17, 0.08) 100%),
    linear-gradient(0deg, rgba(6, 18, 16, 0.42), rgba(6, 18, 16, 0));
}

.hero-content {
  width: min(820px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 88px);
  padding: 64px 0 96px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: currentColor;
  opacity: 0.76;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  width: min(720px, 100%);
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-field,
.select-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  background: #f2f6f4;
  border: 1px solid transparent;
  border-radius: 8px;
}

.search-field {
  padding: 0 14px;
}

.search-field:focus-within,
.select-field:focus-within,
.publish-form label:focus-within {
  border-color: rgba(22, 128, 95, 0.5);
  box-shadow: 0 0 0 3px rgba(22, 128, 95, 0.12);
}

.search-field input,
.select-field select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  border: 0;
  background: transparent;
  outline: 0;
}

.search-field input {
  height: 48px;
}

.select-field {
  padding: 0 12px;
  height: 44px;
}

.select-field select {
  appearance: none;
  padding-right: 6px;
}

.primary-button,
.secondary-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  padding: 0 18px;
  color: var(--white);
  background: var(--green);
}

.primary-button:hover {
  background: var(--green-dark);
}

.secondary-button {
  padding: 0 16px;
  color: var(--green-dark);
  background: #e9f3ef;
  border-color: #cfe2da;
}

.secondary-button:hover {
  background: #dcece5;
}

.icon-button {
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.icon-button:hover {
  background: #edf4f1;
}

.publish-shortcut {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 36px));
  margin: -46px auto 28px;
  position: relative;
  z-index: 3;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-strip div {
  min-height: 92px;
  padding: 20px;
  background: var(--white);
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip strong {
  font-size: 30px;
  line-height: 1.1;
}

.quick-strip span {
  margin-top: 6px;
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 44px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
}

.panel,
.feed-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: 18px;
}

.panel-title,
.section-toolbar,
.toolbar-actions {
  display: flex;
  align-items: center;
}

.panel-title {
  gap: 10px;
  margin-bottom: 14px;
}

.panel-title h2,
.section-toolbar h2,
.dialog-header h2,
.publish-band h2 {
  margin: 0;
}

.panel-title h2 {
  font-size: 18px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  color: #34434c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
}

.category-button:hover,
.category-button.active {
  background: #edf4f1;
  border-color: #cfe2da;
}

.category-button.active {
  color: var(--green-dark);
  font-weight: 800;
}

.count-pill {
  min-width: 26px;
  padding: 3px 8px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-list a {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 82px;
  padding: 12px 8px;
  color: #34434c;
  background: #f4f8f6;
  border: 1px solid #e5eeea;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}

.service-list a:hover {
  color: var(--green-dark);
  border-color: #cfe2da;
}

.feed-section {
  min-width: 0;
  padding: 22px;
}

.section-toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-toolbar .eyebrow {
  color: var(--green-dark);
}

.section-toolbar h2 {
  font-size: 28px;
}

.toolbar-actions {
  gap: 8px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.info-card {
  display: grid;
  gap: 14px;
  min-height: 224px;
  padding: 18px;
  background: #fbfdfc;
  border: 1px solid #e2ebe7;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 128, 95, 0.35);
  box-shadow: 0 14px 28px rgba(21, 36, 32, 0.08);
}

.card-top,
.card-meta,
.contact-row {
  display: flex;
  align-items: center;
}

.card-top {
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--green-dark);
  background: #e9f3ef;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.tag.urgent {
  color: #8c321e;
  background: #fae8e2;
}

.info-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.info-card p {
  margin: 0;
  color: #52616a;
  line-height: 1.7;
}

.card-meta {
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta span,
.contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-row {
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.contact-row a {
  min-height: 38px;
  padding: 0 12px;
  color: var(--blue);
  background: #edf6fb;
  border-radius: 8px;
  font-weight: 800;
}

.time-text {
  color: var(--muted);
  font-size: 13px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
}

.publish-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 48px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-dark), #244b42 58%, var(--coral));
  border-radius: 8px;
}

.publish-band .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.publish-band .primary-button {
  color: var(--green-dark);
  background: var(--white);
}

.publish-dialog {
  width: min(680px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.publish-dialog::backdrop {
  background: rgba(10, 22, 19, 0.6);
  backdrop-filter: blur(4px);
}

.publish-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header .eyebrow {
  color: var(--green-dark);
}

.dialog-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.publish-form label {
  display: grid;
  gap: 7px;
  color: #34434c;
  font-weight: 700;
}

.publish-form input,
.publish-form select,
.publish-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #f8fbf9;
}

.publish-form input,
.publish-form select {
  height: 46px;
  padding: 0 12px;
}

.publish-form textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.check-line {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 10px !important;
  width: fit-content;
}

.check-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  color: var(--green-dark);
  background: #e9f3ef;
  border: 1px solid #cfe2da;
  border-radius: 8px;
  line-height: 1.6;
}

.form-message[data-type="error"] {
  color: #8c321e;
  background: #fae8e2;
  border-color: #efcfc6;
}

.form-message[data-type="info"] {
  color: #205579;
  background: #edf6fb;
  border-color: #cfe4f0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 28px 18px 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
}

svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .feed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 620px;
    align-items: end;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin: 0 auto;
    padding-bottom: 78px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    grid-template-columns: 1fr;
    margin-top: -34px;
  }

  .quick-strip div {
    min-height: 76px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .section-toolbar,
  .publish-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions {
    justify-content: space-between;
  }

  .select-field {
    flex: 1;
  }

  .feed-section,
  .panel,
  .publish-form,
  .publish-band {
    padding: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
