/* YOUSHENGWANG — teal + coral on mint (Shanghai e-commerce trade) */
:root {
  --bg: #ecfdf5;
  --surface: #ffffff;
  --ink: #134e4a;
  --ink-muted: #0f766e;
  --accent: #0d9488;
  --accent-2: #f97316;
  --accent-light: #ccfbf1;
  --line: rgba(19, 78, 74, 0.1);
  --header-bg: rgba(236, 253, 245, 0.88);
  --footer-bg: #134e4a;
  --footer-ink: #99f6e4;
  --shadow: 0 16px 48px rgba(13, 148, 136, 0.14);
  --radius: 16px;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(13, 148, 136, 0.1), transparent 55%),
    radial-gradient(700px 420px at 100% 100%, rgba(249, 115, 22, 0.08), transparent 50%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, .ysw-display {
  font-family: "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

/* Header */
.ysw-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.ysw-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(19, 78, 74, 0.06);
}

.ysw-header__inner {
  position: relative;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.ysw-logo img {
  height: 42px;
  width: auto;
}

.ysw-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.ysw-nav a {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.ysw-nav a:hover,
.ysw-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--accent-light);
}

.ysw-header__cta {
  justify-self: end;
}

.ysw-nav-toggle {
  display: none;
  border: none;
  background: var(--accent-light);
  color: var(--ink);
  font-size: 1.35rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

/* Buttons */
.ysw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.ysw-btn:hover {
  transform: translateY(-1px);
}

.ysw-btn--solid {
  background: linear-gradient(135deg, var(--accent), #14b8a6);
  color: #fff;
}

.ysw-btn--solid:hover {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, var(--accent));
}

.ysw-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.ysw-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ysw-btn--coral {
  background: var(--accent-2);
  color: #fff;
}

.ysw-btn--coral:hover {
  background: #ea580c;
  color: #fff;
}

/* Hero carousel */
.ysw-hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  overflow: hidden;
  border-radius: 0 0 var(--radius) var(--radius);
}

.ysw-hero__slides {
  position: absolute;
  inset: 0;
}

.ysw-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.ysw-hero__slide.is-active {
  opacity: 1;
}

.ysw-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ysw-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(19, 78, 74, 0.82) 0%, rgba(19, 78, 74, 0.45) 45%, rgba(19, 78, 74, 0.15) 100%);
}

.ysw-hero__panel {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 4.5rem;
}

.ysw-hero__card {
  max-width: 560px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  color: #fff;
}

.ysw-hero__pane {
  display: none;
}

.ysw-hero__pane.is-active {
  display: block;
  animation: yswFadeIn 0.5s ease;
}

@keyframes yswFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ysw-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5eead4;
}

.ysw-hero__pane h1,
.ysw-hero__pane h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  color: #fff;
}

.ysw-lead {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.ysw-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.ysw-hero__prev,
.ysw-hero__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}

.ysw-hero__prev:hover,
.ysw-hero__next:hover {
  background: var(--accent-2);
  color: #fff;
}

.ysw-hero__prev { left: 1rem; }
.ysw-hero__next { right: 1rem; }

.ysw-hero__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.ysw-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ysw-hero__dot.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: scale(1.15);
}

/* Sections */
.ysw-section {
  padding: 4rem 0;
}

.ysw-container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.ysw-section__head {
  margin-bottom: 2.25rem;
}

.ysw-section__head--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ysw-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

/* Product grid — fixed 4 columns */
.ysw-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ysw-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ysw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(13, 148, 136, 0.18);
}

.ysw-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ysw-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--accent-2);
}

.ysw-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.ysw-card__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Company intro — image left */
.ysw-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.ysw-intro__visual img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ysw-intro__text h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
}

.ysw-intro__text p {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
}

/* Reviews */
.ysw-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.ysw-review {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(19, 78, 74, 0.06);
}

.ysw-review__head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.ysw-review__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.ysw-review__name {
  font-weight: 700;
  font-size: 0.95rem;
}

.ysw-review__role {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.ysw-review__stars {
  color: var(--accent-2);
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.ysw-review__text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Message form split */
.ysw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.ysw-split__media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ysw-form {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ysw-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ysw-field {
  display: block;
  margin-bottom: 1rem;
}

.ysw-field__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink-muted);
}

.ysw-field__input,
.ysw-field__textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ysw-field__input:focus,
.ysw-field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.ysw-form__hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* About page */
.ysw-about {
  padding: 3rem 0 4rem;
}

.ysw-about__inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ysw-about__hero-img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ysw-about__copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.ysw-about__copy p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

/* Contact page */
.ysw-contact-wrap {
  padding-bottom: 3rem;
}

.ysw-contact-banner {
  width: 100%;
  max-height: 340px;
  overflow: hidden;
}

.ysw-contact-banner img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.ysw-contact-split {
  width: min(var(--max), calc(100% - 2rem));
  margin: -2.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.ysw-contact-split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ysw-contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ysw-contact-card h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
}

.ysw-contact-card dl {
  margin: 0;
}

.ysw-contact-card dl > div {
  margin-bottom: 1rem;
}

.ysw-contact-card dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.ysw-contact-card dd {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.ysw-contact-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* Footer */
.ysw-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.ysw-footer__grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.ysw-footer__logo img {
  height: 40px;
  width: auto;
  margin-bottom: 0.85rem;
  filter: brightness(1.15);
}

.ysw-footer__desc {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.9;
}

.ysw-footer__social {
  display: flex;
  gap: 0.65rem;
}

.ysw-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--footer-ink);
  transition: background 0.2s, color 0.2s;
}

.ysw-social:hover {
  background: var(--accent-2);
  color: #fff;
}

.ysw-social img {
  width: 18px;
  height: 18px;
}

.ysw-footer__title {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: inherit;
}

.ysw-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ysw-footer__list li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.ysw-footer__list a {
  color: var(--footer-ink);
}

.ysw-footer__list a:hover {
  color: #fff;
}

.ysw-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  text-align: center;
}

.ysw-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 1024px) {
  .ysw-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ysw-reviews {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ysw-header__inner {
    grid-template-columns: 1fr auto;
  }

  .ysw-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .ysw-nav.is-open {
    display: flex;
  }

  .ysw-header__cta {
    display: none;
  }

  .ysw-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ysw-hero__panel {
    padding-bottom: 3.5rem;
  }

  .ysw-hero__card {
    padding: 1.25rem 1.35rem;
  }

  .ysw-intro,
  .ysw-split,
  .ysw-contact-split,
  .ysw-about__inner {
    grid-template-columns: 1fr;
  }

  .ysw-intro__visual {
    order: -1;
  }

  .ysw-form__row {
    grid-template-columns: 1fr;
  }

  .ysw-contact-split {
    margin-top: 0;
  }

  .ysw-footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ysw-grid-4 {
    grid-template-columns: 1fr;
  }
}
