:root {
  --ink: #111512;
  --ink-soft: #354039;
  --paper: #f4f1e9;
  --card: #fbfaf5;
  --line: rgba(17, 21, 18, 0.14);
  --muted: #69736c;
  --sage: #7d8b7e;
  --forest: #173b2d;
  --acid: #d9ff43;
  --brand-red: #8b030e;
  --brand-red-dark: #570008;
  --brand-red-light: #b60b1a;
  --signal-red: #ff4353;
  --cream: #faf7f3;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 48% 8%,
      rgba(205, 22, 38, 0.88),
      transparent 42rem
    ),
    radial-gradient(
      circle at 92% 44%,
      rgba(170, 7, 23, 0.7),
      transparent 38rem
    ),
    linear-gradient(
      155deg,
      var(--brand-red-dark),
      var(--brand-red) 52%,
      #6b0009
    );
  background-attachment: fixed;
  font-family:
    Inter, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.lang-en,
html[data-lang="zh"] .lang-en,
html:not([data-lang="en"]) .lang-en,
html[data-lang="en"] .lang-zh {
  display: none !important;
}

html[data-lang="en"] .lang-en {
  display: inline !important;
}

.card-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.page-nav {
  position: sticky;
  z-index: 20;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  margin-bottom: 14px;
  padding: 12px 14px 12px 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(99, 0, 10, 0.84);
  box-shadow: 0 14px 42px rgba(49, 0, 5, 0.28);
  backdrop-filter: blur(18px);
}

.page-logo {
  width: clamp(152px, 19vw, 224px);
}

.page-logo img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions > a,
.language-toggle {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.language-toggle {
  min-width: 50px;
  background: var(--cream);
  color: var(--brand-red);
}

.business-card,
.catalog-section,
.connect-section {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: rgba(251, 250, 245, 0.93);
  box-shadow: 0 28px 90px rgba(20, 27, 22, 0.1);
}

.business-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(34px, 6vw, 88px);
  min-height: 590px;
  padding: clamp(34px, 6vw, 72px);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(
      circle at 18% 15%,
      rgba(220, 38, 50, 0.72),
      transparent 31rem
    ),
    radial-gradient(
      circle at 80% 85%,
      rgba(116, 0, 10, 0.8),
      transparent 34rem
    ),
    linear-gradient(145deg, #990812, var(--brand-red-dark));
  box-shadow: 0 30px 100px rgba(43, 0, 4, 0.38);
  overflow: hidden;
}

.business-card::before {
  content: "";
  position: absolute;
  top: -170px;
  left: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  filter: blur(2px);
  pointer-events: none;
}

.business-card::after {
  content: "TOMOSCA";
  position: absolute;
  right: 3%;
  bottom: -0.21em;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.company-line,
.section-kicker {
  margin: 0;
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.business-card .company-line {
  color: rgba(255, 255, 255, 0.92);
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--cream);
  color: #4c1519;
  font-size: 0.72rem;
  font-weight: 760;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #29a466;
  box-shadow: 0 0 0 5px rgba(41, 164, 102, 0.12);
}

.role {
  margin: 46px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.business-card .role {
  color: rgba(255, 255, 255, 0.76);
}

h1,
.section-heading h2,
.connect-copy h2 {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 7.8vw, 7.6rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

h1 strong,
h1 span {
  display: block;
  font-weight: 400;
}

.business-card h1 span {
  color: #fff5ed;
}

h1 span {
  margin-left: 0.5em;
  color: var(--sage);
  font-style: italic;
}

.title-line {
  margin: 24px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.business-card .title-line {
  color: var(--white);
}

.profile-intro {
  max-width: 660px;
  margin: 18px 0 0;
  color: #566159;
  font-size: 0.96rem;
  line-height: 1.8;
}

.business-card .profile-intro {
  color: rgba(255, 255, 255, 0.78);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.profile-tags > span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
}

.primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 21, 18, 0.15);
}

.button-primary {
  min-width: 180px;
  color: var(--brand-red);
  border-color: var(--cream);
  background: var(--cream);
}

.button-secondary {
  min-width: 164px;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.portrait-panel {
  position: relative;
  align-self: stretch;
  min-height: 460px;
  padding: 18px;
  border: 3px solid var(--signal-red);
  border-radius: 22px;
  color: var(--white);
  background: #1b211c;
  overflow: hidden;
}

.portrait-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(217, 255, 67, 0.16), transparent 40%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.portrait-wrap {
  width: 100%;
  height: 100%;
  min-height: 424px;
  border-radius: 14px;
  overflow: hidden;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 33%;
  filter: saturate(0.85) contrast(1.03);
}

.portrait-caption {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 31px;
  left: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.portrait-caption span {
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.portrait-caption small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-align: right;
  text-transform: uppercase;
}

.portrait-stamp {
  position: absolute;
  z-index: 3;
  top: 34px;
  right: 34px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(17, 21, 18, 0.25);
  backdrop-filter: blur(8px);
}

.portrait-stamp strong {
  margin-top: 10px;
  color: var(--signal-red);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.portrait-stamp span {
  margin-top: -17px;
  font-size: 0.47rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.service-strip article {
  min-width: 0;
  padding: 25px 26px;
  background: rgba(250, 247, 243, 0.96);
}

.service-strip article > span {
  color: #8a948d;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.service-strip h2 {
  margin: 28px 0 7px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.service-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.catalog-section,
.connect-section {
  margin-top: 14px;
  padding: clamp(28px, 5vw, 58px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  align-items: end;
  gap: 34px;
}

.section-heading h2,
.connect-copy h2 {
  margin: 18px 0 0;
  font-size: clamp(2.4rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.tab-row {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-row::-webkit-scrollbar,
.product-track::-webkit-scrollbar {
  display: none;
}

.family-tabs {
  margin-top: 38px;
  padding-bottom: 2px;
}

.series-tabs {
  margin-top: 10px;
  padding-bottom: 4px;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  font-weight: 820;
  cursor: pointer;
  white-space: nowrap;
}

.family-tabs .tab-button[aria-selected="true"] {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.series-tabs .tab-button {
  min-height: 36px;
  color: #526058;
  border-color: transparent;
  background: transparent;
}

.series-tabs .tab-button[aria-selected="true"] {
  color: var(--ink);
  background: var(--acid);
}

.carousel-shell {
  margin-top: 20px;
  padding: clamp(18px, 3.2vw, 34px);
  border-radius: 20px;
  color: var(--white);
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(212, 31, 46, 0.4),
      transparent 26rem
    ),
    linear-gradient(145deg, var(--brand-red), var(--brand-red-dark));
  overflow: hidden;
}

.carousel-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.active-family {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.carousel-topline h3 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  font-weight: 400;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.carousel-controls button:hover {
  color: var(--ink);
  background: var(--acid);
}

.product-track {
  display: grid;
  grid-auto-columns: minmax(205px, 24%);
  grid-auto-flow: column;
  gap: 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-card {
  min-width: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #f0ede4;
  overflow: hidden;
  scroll-snap-align: start;
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #d5d1c7;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.02);
}

.product-meta {
  min-height: 96px;
  padding: 15px 16px 17px;
}

.product-meta small {
  display: block;
  margin-bottom: 7px;
  color: #737d76;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-meta h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}

.product-meta p {
  margin: 5px 0 0;
  color: #6b746e;
  font-size: 0.68rem;
}

.carousel-progress {
  height: 2px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.carousel-progress span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--acid);
  transform-origin: left;
  transition: transform 0.16s linear;
}

.carousel-status {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.connect-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 84px);
}

.connect-copy h2 {
  font-size: clamp(2.35rem, 4vw, 4.4rem);
}

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

.contact-links a {
  position: relative;
  display: grid;
  min-height: 134px;
  align-content: end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-3px);
  background: var(--acid);
}

.contact-index {
  position: absolute;
  top: 17px;
  left: 18px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.contact-links strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.15rem;
  font-weight: 400;
}

.contact-links small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.68rem;
}

.contact-arrow {
  position: absolute;
  top: 16px;
  right: 18px;
}

.page-footer {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 14px;
  padding: 24px 28px;
  border-radius: 20px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(75, 0, 7, 0.88);
}

.page-footer > .footer-logo {
  width: 180px;
  height: auto;
  filter: invert(1);
}

.page-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.footer-location {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
}

.page-footer .footer-certificate {
  width: 92px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  filter: none;
  mix-blend-mode: normal;
}

.floating-whatsapp {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 17px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--white);
  background: #16874a;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
}

.floating-whatsapp > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 900;
}

:is(a, button, .product-track):focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .business-card {
    grid-template-columns: 1fr;
  }

  .portrait-panel {
    min-height: 520px;
  }

  .section-heading,
  .connect-section {
    grid-template-columns: 1fr;
  }

  .product-track {
    grid-auto-columns: minmax(210px, 42%);
  }
}

@media (max-width: 600px) {
  .card-page {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .page-nav {
    top: 7px;
    min-height: 58px;
    margin-bottom: 10px;
    padding: 9px 10px 9px 14px;
    border-radius: 15px;
  }

  .page-logo {
    width: 142px;
  }

  .nav-actions > a {
    display: none;
  }

  .language-toggle {
    min-width: 46px;
    min-height: 36px;
    padding-inline: 10px;
  }

  .business-card,
  .catalog-section,
  .connect-section {
    border-radius: 20px;
  }

  .business-card {
    min-height: auto;
    gap: 28px;
    padding: 27px 20px 20px;
  }

  .company-line {
    font-size: 0.61rem;
  }

  .availability {
    margin-top: 12px;
    font-size: 0.66rem;
  }

  .role {
    margin-top: 36px;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 5.4rem);
    line-height: 0.84;
  }

  .title-line {
    margin-top: 20px;
    font-size: 0.94rem;
  }

  .profile-intro {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  .profile-tags {
    gap: 6px;
  }

  .primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .button {
    min-width: 0;
    min-height: 50px;
    padding-inline: 14px;
    font-size: 0.76rem;
  }

  .portrait-panel {
    min-height: 390px;
    padding: 10px;
    border-radius: 16px;
  }

  .portrait-wrap {
    min-height: 370px;
  }

  .portrait-caption {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .portrait-stamp {
    top: 22px;
    right: 22px;
    width: 76px;
    height: 76px;
  }

  .service-strip {
    grid-template-columns: 1fr;
    margin-block: 10px;
    border-radius: 17px;
  }

  .service-strip article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 8px;
    padding: 18px;
  }

  .service-strip h2 {
    margin: 0;
    font-size: 1.14rem;
  }

  .service-strip p {
    grid-column: 2;
  }

  .catalog-section,
  .connect-section {
    margin-top: 10px;
    padding: 28px 16px 16px;
  }

  .section-heading {
    gap: 18px;
  }

  .section-heading h2,
  .connect-copy h2 {
    font-size: 2.45rem;
  }

  .family-tabs {
    margin-top: 28px;
  }

  .tab-button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .carousel-shell {
    margin-top: 14px;
    padding: 18px 14px;
    border-radius: 16px;
  }

  .carousel-topline {
    align-items: center;
    margin-bottom: 16px;
  }

  .carousel-topline h3 {
    font-size: 1.58rem;
  }

  .carousel-controls button {
    width: 40px;
    height: 40px;
  }

  .product-track {
    grid-auto-columns: 78%;
    gap: 10px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .product-meta {
    min-height: 90px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-links a {
    min-height: 112px;
  }

  .page-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
    margin-top: 10px;
    padding: 28px 18px;
    border-radius: 17px;
    text-align: center;
  }

  .page-footer > .footer-logo {
    width: 166px;
  }

  .footer-meta {
    justify-content: center;
    gap: 12px;
  }

  .page-footer .footer-certificate {
    width: 92px;
  }

  .floating-whatsapp {
    right: 13px;
    bottom: 13px;
    width: 50px;
    padding: 0 8px;
  }

  .floating-whatsapp strong {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
