:root {
  color-scheme: light;
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #eef3ef;
  --text: #17211d;
  --muted: #5f6c65;
  --line: #d8dfda;
  --accent: #0d6f5c;
  --accent-dark: #094c40;
  --accent-soft: #dceee9;
  --shadow: 0 20px 60px rgba(24, 37, 32, 0.12);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 223, 218, 0.82);
  background: rgba(247, 248, 246, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.nav a:focus-visible,
.nav-dropdown-button:hover,
.nav-dropdown-button:focus-visible {
  color: var(--accent-dark);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: none;
  min-width: 160px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(24, 37, 32, 0.16);
  overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  display: grid;
}

.nav-dropdown-menu a {
  padding: 10px 14px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--accent-soft);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(13, 111, 92, 0.95), rgba(20, 45, 39, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 96px);
}

.hero-content {
  width: min(760px, 100%);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bce9dc;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
}

.primary-action {
  color: var(--accent-dark);
  background: #ffffff;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 30px;
}

.feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(24, 37, 32, 0.05);
}

.feature-index {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 800;
}

.feature-card p,
.content-copy p,
.contact-panel p {
  color: var(--muted);
}

.section-muted {
  background: var(--surface-muted);
}

.tool-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.tool-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(24, 37, 32, 0.07);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.tool-card-header h3 {
  margin-bottom: 0;
}

.unit-switch,
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unit-button,
.ghost-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 700;
}

.unit-button {
  min-width: 58px;
  padding: 0 14px;
}

.ghost-button {
  padding: 0 14px;
}

.unit-button:hover,
.unit-button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible,
.unit-button.is-selected {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 14px;
  align-items: end;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.field,
.timezone-field,
.json-input-wrap,
.text-tool-workspace label,
.json-output-wrap {
  display: grid;
  gap: 8px;
}

.field span,
.timezone-field span,
.json-input-wrap span,
.text-tool-workspace label span,
.json-output-wrap span,
.current-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input,
.timezone-field select,
.json-input-wrap textarea,
.text-tool-workspace textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fbfcfb;
  outline: none;
}

.timezone-field {
  margin-bottom: 8px;
}

.field input,
.timezone-field select {
  min-height: 48px;
  padding: 0 14px;
}

.field input:focus,
.timezone-field select:focus,
.json-input-wrap textarea:focus,
.text-tool-workspace textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 111, 92, 0.14);
}

.tool-output {
  display: flex;
  align-items: center;
  min-height: 48px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.current-time {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.current-time strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.2;
}

.json-tool {
  min-width: 0;
}

.json-workspace,
.text-tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.json-input-wrap textarea,
.text-tool-workspace textarea,
.json-output-wrap pre {
  min-height: 320px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre;
}

.json-input-wrap textarea {
  resize: vertical;
}

.text-tool-workspace textarea {
  resize: vertical;
}

.json-output-wrap pre {
  background: #fbfcfb;
}

.tool-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.password-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
}

.password-options {
  display: grid;
  gap: 18px;
}

.check-group {
  display: grid;
  gap: 10px;
}

.check-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  color: var(--muted);
  font-weight: 700;
}

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

.password-result {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.password-result span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.password-result output {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: #fbfcfb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
}

.string {
  color: #137333;
}

.number {
  color: #b05a00;
}

.boolean {
  color: #1a5fb4;
}

.null {
  color: #9c27b0;
}

.key {
  color: #b3261e;
}

.section-compact {
  padding-top: clamp(32px, 5vw, 64px);
}

.workspace-board {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
}

.workspace-panel {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.task-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.task-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
}

.task-status {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.task-status.is-active {
  border-color: var(--accent);
  background: var(--accent);
}

.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-group span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 14px;
  font-weight: 700;
}

.meta-list {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.meta-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.meta-list dt {
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
  color: var(--muted);
}

.two-column {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.content-copy {
  font-size: 18px;
}

.content-copy p:last-child {
  margin-bottom: 0;
}

.contact-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel p {
  max-width: 620px;
  margin-bottom: 0;
}

.email-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #ffffff;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.filing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.filing-link {
  color: var(--muted);
}

.filing-link:hover,
.filing-link:focus-visible {
  color: var(--accent-dark);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
  }

  .hero {
    min-height: 620px;
  }

  .feature-grid,
  .tool-grid,
  .workspace-board,
  .two-column {
    grid-template-columns: 1fr;
  }

  .tool-card-header,
  .tool-row,
  .current-time,
  .json-workspace,
  .text-tool-workspace,
  .password-layout {
    grid-template-columns: 1fr;
  }

  .tool-card-header,
  .current-time {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .primary-action,
  .secondary-action,
  .email-link,
  .tool-actions,
  .unit-switch,
  .ghost-button {
    width: 100%;
  }

  .unit-button,
  .ghost-button {
    flex: 1;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .filing-links {
    justify-content: flex-start;
  }
}
