:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #66706d;
  --line: #e4ded2;
  --paper: #fffaf1;
  --soft: #f7f1e6;
  --teal: #1e665f;
  --teal-dark: #123f3c;
  --gold: #ad8547;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(23, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

html:lang(zh-CN) body {
  line-height: 1.72;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 4vw, 52px);
  padding: 14px clamp(22px, 5vw, 72px);
  background: rgba(255, 250, 241, 0.94);
  border-bottom: 1px solid rgba(228, 222, 210, 0.84);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer-links,
.header-tools,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 10px;
  padding: 0;
  border-radius: 8px;
  font-weight: 800;
}

.brand-mark {
  display: block;
  position: relative;
  width: 112px;
  height: 58px;
  border-radius: 0;
  background: url("assets/jx-acct-logo-transparent.png") center / contain no-repeat;
  border: 0;
  color: transparent;
  box-shadow: none;
  font-size: 0;
}

.brand-mark span {
  display: none;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.brand-text strong {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.nav a:hover,
.footer-links a:hover,
.text-link:hover,
.language-switcher a:hover {
  color: var(--teal-dark);
}

.header-tools {
  flex: 0 0 auto;
  gap: 14px;
}

.language-switcher {
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-switcher .active {
  color: var(--ink);
}

.header-action,
.button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-action {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 750;
  font-size: 0.9rem;
}

.header-action:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  overflow: hidden;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(410px, 0.86fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
  min-height: min(780px, 88vh);
  padding: clamp(62px, 8vw, 108px) clamp(22px, 5vw, 72px) clamp(64px, 8vw, 106px);
  background:
    linear-gradient(180deg, rgba(247, 241, 230, 0.86), rgba(255, 250, 241, 0) 50%),
    var(--paper);
}

.editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 48%;
  background: linear-gradient(90deg, rgba(173, 133, 71, 0.08), rgba(30, 102, 95, 0));
  pointer-events: none;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 590px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(23, 33, 31, 0.12);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transition: transform 500ms ease;
}

.hero-visual:hover .hero-image {
  transform: scale(1.025);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  margin: 0;
  padding: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.credential-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
  color: var(--ink);
}

.credential-line strong {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 850;
}

.credential-line span {
  padding-left: 12px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 7.8vw, 7.5rem);
  font-weight: 520;
  letter-spacing: 0;
}

h2 {
  max-width: 820px;
  font-size: clamp(2.15rem, 4vw, 3.55rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.12rem;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.chinese-line {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(18, 63, 60, 0.18);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.inline-button {
  width: fit-content;
  margin-top: 26px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-band div {
  padding: 28px clamp(18px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.68);
}

.stat {
  display: block;
  color: var(--teal-dark);
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
  font-weight: 850;
  line-height: 1.12;
}

.section,
.about-section,
.contact-section,
.page-hero,
.why-section {
  padding: clamp(90px, 12vw, 158px) clamp(22px, 5vw, 72px);
}

.page-hero {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.compact-section {
  padding-top: clamp(52px, 7vw, 90px);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

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

.service-blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.service-block {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(30px, 4vw, 46px);
  border-right: 1px solid var(--line);
  background: transparent;
}

.service-block:last-child {
  border-right: 0;
}

.service-number {
  color: rgba(173, 133, 71, 0.38);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.9;
}

.service-kicker {
  margin-top: 36px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-block h3 {
  margin-top: 14px;
  font-size: clamp(1.38rem, 2.1vw, 2rem);
  line-height: 1.08;
}

.service-block p {
  margin: 18px 0 28px;
  color: var(--muted);
}

.category-card,
.detail-card,
.services-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.category-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: inline-grid;
  width: fit-content;
  min-width: 46px;
  min-height: 34px;
  place-items: center;
  margin-bottom: 22px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.category-card ul,
.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding-left: 19px;
  color: var(--muted);
}

.text-link {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 850;
}

.text-link::after {
  content: " ->";
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: clamp(34px, 7vw, 96px);
  align-items: end;
  background: #142320;
  color: var(--white);
}

.why-section .eyebrow,
.why-section h2 {
  color: var(--white);
}

.why-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 520;
}

.why-points {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.why-points div {
  display: grid;
  gap: 4px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.why-points strong {
  color: var(--white);
  font-size: 1.1rem;
}

.why-points span {
  color: rgba(255, 255, 255, 0.72);
}

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

.detail-card h2,
.services-list h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.detail-card p,
.services-list p,
.about-copy p,
.contact-section p,
.process-panel li {
  color: var(--muted);
}

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

.services-list p,
.detail-card p {
  margin-bottom: 0;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(30px, 6vw, 80px);
  align-items: start;
  background: #f6f0e4;
}

.home-about {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  background: var(--paper);
}

.about-visual {
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
}

.about-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.standalone-about {
  background: var(--paper);
}

.about-copy p {
  max-width: 780px;
  margin: 24px 0 0;
  font-size: 1.06rem;
}

.about-credential {
  margin-top: 26px;
}

.process-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.process-panel ol {
  display: grid;
  gap: 16px;
  margin: 22px 0 0;
  padding-left: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.contact-page-section {
  padding-top: clamp(52px, 7vw, 90px);
}

.email-only-section {
  grid-template-columns: minmax(0, 720px);
}

.contact-section p {
  max-width: 700px;
  margin: 20px 0 0;
}

.contact-card {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #143f3c;
  color: var(--white);
  box-shadow: 0 16px 34px rgba(18, 63, 60, 0.14);
}

.contact-card span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-card strong {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.direct-email {
  display: grid;
  gap: 10px;
  max-width: 430px;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.06);
}

.direct-email span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.direct-email strong {
  color: var(--teal-dark);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  overflow-wrap: anywhere;
}

.direct-email .button {
  width: fit-content;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 12px 13px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(29, 111, 104, 0.18);
  border-color: var(--teal);
}

.security-note,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status.error {
  color: #8a2f23;
}

.form-status.success {
  color: var(--teal-dark);
}

.form-status a {
  color: inherit;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  gap: 18px;
}

.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 72px 24px;
}

.policy-page h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.policy-page h2 {
  margin-top: 36px;
  font-size: 1.45rem;
}

.policy-page p,
.policy-page li {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .category-grid,
  .service-blocks,
  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-block:nth-child(2) {
    border-right: 0;
  }

  .service-block:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .editorial-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    gap: 18px;
    padding-top: 12px;
    padding-bottom: 18px;
  }

  .brand {
    width: auto;
  }

  .brand-mark {
    width: 102px;
    height: 52px;
  }

  .header-action {
    width: 100%;
    text-align: center;
  }

  .header-tools {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    font-size: 0.92rem;
  }

  .editorial-hero {
    min-height: auto;
    gap: 38px;
    padding-top: 54px;
    padding-bottom: 72px;
  }

  .credential-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .credential-line span {
    padding-left: 0;
    border-left: 0;
    color: var(--teal-dark);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 14vw, 4.35rem);
  }

  html:lang(zh-CN) h1 {
    max-width: 12ch;
    font-size: clamp(2.55rem, 12vw, 3.65rem);
    line-height: 1.16;
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.7rem);
  }

  html:lang(zh-CN) h2 {
    line-height: 1.22;
  }

  .button {
    width: 100%;
  }

  .trust-band,
  .category-grid,
  .service-blocks,
  .detail-grid,
  .services-list,
  .about-section,
  .contact-section,
  .why-section {
    grid-template-columns: 1fr;
  }

  .service-block {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-block:last-child {
    border-bottom: 0;
  }

  .service-kicker {
    margin-top: 28px;
  }

  .hero-visual,
  .about-visual {
    min-height: 340px;
  }

  .category-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
