:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #16201d;
  background: #f7f6f1;
  --ink: #16201d;
  --muted: #5c6964;
  --line: #dedbd1;
  --paper: #fffef9;
  --soft: #eeebe1;
  --green: #11845b;
  --blue: #2f5f8f;
  --coral: #dc6657;
  --amber: #c9941c;
  --shadow: 0 16px 42px rgba(28, 35, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 246, 241, 0.9);
  border-bottom: 1px solid rgba(222, 219, 209, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #11845b;
}

.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: clamp(36px, 6vw, 72px) clamp(18px, 5vw, 72px) 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(17, 132, 91, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(220, 102, 87, 0.12), transparent 28%),
    #f7f6f1;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  max-width: 640px;
  font-size: 1.08rem;
}

.hero-actions,
.button-row,
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.ghost-action,
button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 750;
  cursor: pointer;
}

.primary-action,
button {
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(17, 132, 91, 0.18);
}

.ghost-action,
button.secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
  box-shadow: none;
}

button.small {
  min-height: 38px;
  padding: 8px 12px;
}

.primary-action:hover,
button:hover {
  background: #0d6d4b;
}

.ghost-action:hover,
button.secondary:hover {
  background: #eeebe1;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 12px;
  max-width: 520px;
  margin: 34px 0 0;
}

.signal-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 249, 0.72);
}

.signal-grid dt {
  font-size: 1.28rem;
  font-weight: 850;
}

.signal-grid dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.tool-panel,
.content-section,
.visual-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tool-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
}

.panel-heading,
.inline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2,
.section-heading h2,
.inline-heading h2 {
  margin-bottom: 0;
}

.status-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(47, 95, 143, 0.25);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(47, 95, 143, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcbbf;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(17, 132, 91, 0.13);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.message {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfcbbf;
  border-radius: 8px;
  color: var(--muted);
  background: #f8f7f1;
}

.message[data-type="error"] {
  color: #9f2e24;
  border-color: rgba(220, 102, 87, 0.45);
  background: rgba(220, 102, 87, 0.1);
}

.result-panel {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.copy-row {
  flex-wrap: nowrap;
}

.copy-row input {
  min-width: 0;
}

.fine-print {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  margin: 22px clamp(18px, 5vw, 72px) 0;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
}

.visual-band img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.content-section {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: clamp(24px, 4vw, 42px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 24px;
}

.feature-grid,
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.compliance-grid > div {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--coral);
  font-size: 0.86rem;
  font-weight: 850;
}

.feature-card:nth-child(2) .card-icon {
  background: var(--blue);
}

.feature-card:nth-child(3) .card-icon {
  background: var(--amber);
}

.history-section {
  box-shadow: none;
}

.history-list {
  display: grid;
  gap: 10px;
  word-break: break-all;
}

.history-list > p {
  margin-bottom: 0;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
}

.history-item div {
  display: grid;
  gap: 3px;
}

.history-item span,
.history-item time {
  color: var(--muted);
  font-size: 0.9rem;
}

.history-item a {
  color: var(--blue);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 28px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf5;
  font-style: normal;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.policy-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 18px 80px;
}

.policy-card {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.policy-card h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.policy-card li {
  margin-bottom: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.redirect-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background: #f7f6f1;
}

.redirect-card {
  width: min(100%, 620px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.target-host {
  display: inline-flex;
  max-width: 100%;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--blue);
  background: rgba(47, 95, 143, 0.1);
  word-break: break-all;
}

@media (max-width: 920px) {
  .hero,
  .visual-band,
  .about-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .compliance-grid {
    grid-template-columns: 1fr;
  }

  .history-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .panel-heading,
  .inline-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links,
  .site-footer nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(2.7rem, 18vw, 4.8rem);
  }

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

  .copy-row {
    display: grid;
  }

  .primary-action,
  .ghost-action,
  button {
    width: 100%;
  }
}
