
:root {
  --page: #efefe7;
  --paper: #ffffff;
  --ink: #16140f;
  --muted: #77736a;
  --logo-orange: #fc5602;
  --copy-feedback-orange: var(--logo-orange);
  --accent: var(--logo-orange);
  --sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: ui-serif, "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", serif;
}

@theme inline {
  --color-background: var(--page);
  --color-foreground: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  padding: 0;
  border: 0;
}

a {
  text-decoration: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.page-shell {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-height: 76px;
}

.header-mark {
  display: block;
  flex: 0 0 auto;
}

.header-mark img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.header-nav {
  display: flex;
  min-width: 0;
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
}

.header-nav-link {
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: var(--muted);
  white-space: nowrap;
}

.header-nav-button {
  background: transparent;
  cursor: pointer;
}

.header-nav-link > span {
  font-size: 13px;
}

.header-nav-link > small {
  font-size: 10px;
}

.header-nav-link:hover,
.header-nav-link[aria-current="page"] {
  color: var(--ink);
}

.header-nav-link[aria-current="page"] > span {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.language-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.language-toggle:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.75fr);
  gap: clamp(52px, 8vw, 110px);
  align-items: start;
  padding: 78px 0 72px;
}

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

h1 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(62px, 8vw, 100px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.hero-intro h1 {
  font-family: var(--kai);
  font-size: clamp(50px, 6.5vw, 78px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-intro h1.english-name {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  letter-spacing: 0;
}

.hero-role {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
}

.role-separator {
  margin: 0 0.25em;
  color: var(--accent);
  font-weight: 400;
}

.hero-note {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.contact-card {
  padding: 30px;
  background: var(--paper);
}

.contact-profile {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.contact-identity {
  min-width: 0;
}

.contact-avatar {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.contact-profile h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.contact-profile p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.contact-meta {
  display: flex;
  margin-top: 7px;
  gap: 4px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.verification-info {
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-left: 1px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.verification-info:hover {
  color: var(--ink);
}

.contact-row {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 8px 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.contact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.contact-value {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.contact-value > strong {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.contact-value > small {
  display: inline-flex;
  min-width: 13px;
  align-items: center;
  color: var(--logo-orange);
  font-size: 10px;
}

.contact-value > small.is-copied {
  color: var(--copy-feedback-orange);
  font-weight: 700;
}

.contact-row:hover .contact-value > strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-icon {
  position: relative;
  display: inline-block !important;
  width: 13px;
  height: 13px;
}

.copy-icon::before,
.copy-icon::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  content: "";
}

.copy-icon::before {
  top: 0;
  left: 4px;
}

.copy-icon::after {
  top: 4px;
  left: 0;
  background: var(--paper);
}

.scan-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  margin: 8px 0 10px;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  background: var(--logo-orange);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.scan-plus {
  font-size: 21px;
  font-weight: 400;
}

.scan-button:hover {
  background: var(--logo-orange);
}

.platform-section {
  padding: 44px 0 62px;
}

.platform-section h2 {
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 500;
}

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

.platform-card,
.service-card {
  display: flex;
  min-height: 220px;
  padding: 26px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  flex-direction: column;
}

.platform-card,
.service-card {
  cursor: pointer;
}

.platform-card:hover,
.service-card:hover {
  background: #fff0e9;
}

.platform-card img,
.service-logo {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.platform-card strong,
.service-card > strong {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
}

.platform-card span,
.service-card > span {
  margin-top: 7px;
  min-height: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 14px;
}

.services-section {
  padding: 0 0 62px;
}

.services-section h2 {
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 500;
}

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

.site-footer {
  padding: 26px 0 30px;
  color: var(--muted);
  font-size: 11px;
}

.section-intro {
  min-height: calc(100vh - 136px);
  padding: clamp(100px, 18vh, 190px) 0 80px;
}

.section-intro > p {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
}

.section-intro > h1 {
  margin-bottom: 28px;
}

.section-intro > h2 {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.65;
}

.modal-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 20, 15, 0.72);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.qr-dialog {
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--ink);
  background: var(--page);
  box-shadow: 10px 10px 0 var(--accent);
}

.verification-dialog {
  width: min(100%, 380px);
  padding: 30px;
  background: var(--page);
  box-shadow: 10px 10px 0 var(--accent);
}

.verification-dialog h2 {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 500;
}

.verification-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.verification-confirm {
  width: 100%;
  min-height: 48px;
  margin-top: 28px;
  background: var(--logo-orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dialog-heading-compact {
  justify-content: space-between;
  margin-bottom: 12px;
}

.personal-wechat-note {
  margin: 10px 0 0 !important;
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.5;
}

.dialog-heading p {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 500;
}

.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--ink);
  color: var(--page);
}

.service-dialog {
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  background: var(--page);
  box-shadow: 10px 10px 0 var(--accent);
}

.service-dialog-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-dialog-logo {
  display: block;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: cover;
}

.service-dialog-heading {
  min-width: 0;
  flex: 1;
}

.service-dialog-heading h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.25;
}

.service-dialog > p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.service-cta {
  display: flex;
  min-height: 50px;
  margin-top: 26px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
  background: var(--logo-orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.service-cta:hover {
  background: #ff7a33;
}

.service-cta[hidden] {
  display: none !important;
}

.qr-frame {
  padding: 10px;
  border: 1px solid var(--ink);
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(56vh, 520px);
  object-fit: contain;
}

.qr-dialog > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 32px, 1120px);
  }

  .site-header {
    min-height: 68px;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header::-webkit-scrollbar {
    display: none;
  }

  .header-mark img {
    width: 38px;
    height: 38px;
  }

  .header-nav {
    gap: 18px;
  }

  .header-nav-link {
    display: block;
  }

  .header-nav-link > span,
  .header-nav-link > small {
    display: block;
  }

  .language-toggle {
    font-size: 13px;
  }

  .header-nav-link > small {
    margin-top: 3px;
    font-size: 9px;
  }

  .hero {
    display: block;
    padding: 56px 0 52px;
  }

  h1 {
    margin-bottom: 25px;
    font-size: clamp(52px, 18vw, 74px);
  }

  .hero-intro h1 {
    font-size: clamp(44px, 15vw, 62px);
  }

  .hero-intro h1.english-name {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-note {
    font-size: 14px;
  }

  .contact-card {
    margin-top: 38px;
    padding: 23px;
  }

  .contact-profile {
    margin-bottom: 20px;
  }

  .contact-avatar {
    width: 66px;
    height: 66px;
  }

  .contact-value > strong {
    font-size: 13px;
  }

  .platform-section {
    padding: 42px 0 48px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-card,
  .service-card {
    min-height: 180px;
    padding: 20px;
  }

  .platform-card img,
  .service-logo {
    width: 52px;
    height: 52px;
  }

  .platform-card strong,
  .service-card > strong {
    font-size: 16px;
  }

  .services-section {
    padding-bottom: 48px;
  }

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

  .contact-row > strong {
    font-size: 14px;
  }

  .section-intro {
    min-height: calc(100vh - 120px);
    padding-top: 92px;
  }

  .modal-backdrop {
    align-items: end;
    padding: 12px;
  }

  .verification-backdrop {
    align-items: center;
  }

  .qr-dialog {
    padding: 18px;
    box-shadow: 6px 6px 0 var(--accent);
  }

  .service-dialog {
    padding: 22px;
    box-shadow: 6px 6px 0 var(--accent);
  }

  .service-dialog-logo {
    width: 50px;
    height: 50px;
  }

  .service-dialog-heading h2 {
    font-size: 23px;
  }
}
