/* YCTCH Mobile Ltd. 官网样式。不依赖外部字体或第三方库。 */

:root {
  --brand: #0a66c2;
  --brand-dark: #084e96;
  --brand-deep: #073a70;
  --brand-soft: #e9f2fb;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --header-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 页头是吸顶的，锚点跳转时留出页头高度（含 1px 底边） */
  scroll-padding-top: calc(var(--header-height) + 1px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(100% - 48px, 1120px);
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: auto;
  height: 26px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.lang-switch {
  margin-left: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- 通用 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--brand-dark);
}

.btn--ghost {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--light {
  background: #ffffff;
  color: var(--brand-dark);
}

.btn--light:hover {
  background: var(--brand-soft);
}

.section {
  padding-block: 88px;
}

.section--soft {
  background: var(--bg-soft);
}

.section__title {
  position: relative;
  padding-top: 18px;
  color: var(--ink);
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section__title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
}

.section__lead {
  max-width: 44em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* 公司信息列表：标签列宽度随语言自适应 */
.info-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
}

.info-list dt,
.info-list dd {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.info-list dt {
  padding-right: 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.info-list dd {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.info-list dt:first-of-type,
.info-list dd:first-of-type {
  border-top: 0;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef5fc 0%, #ffffff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 102, 194, 0.14) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, #000000 0%, transparent 90%);
  mask-image: linear-gradient(180deg, #000000 0%, transparent 90%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-block: 96px 88px;
}

.hero__label {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero__title {
  margin-top: 20px;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--brand);
}

.hero__lead {
  max-width: 34em;
  margin-top: 20px;
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__art {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
}

/* ---------- 关于我们 ---------- */

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

.about__body p + p {
  margin-top: 16px;
}

.about__body {
  font-size: 1.0625rem;
}

/* ---------- 公司业务 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  margin-top: 20px;
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
}

.card__text {
  margin-top: 10px;
}

.card__list {
  margin-top: 10px;
}

.card__list li {
  position: relative;
  padding-left: 16px;
}

.card__list li + li {
  margin-top: 10px;
}

.card__list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.card__list strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 产品介绍 ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  margin-top: 40px;
}

.product__name {
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.product__desc {
  margin-top: 18px;
  font-size: 1.0625rem;
}

.product__label {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product__label + .chips {
  margin-top: 10px;
}

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

.feature {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.feature__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}

.feature__title svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.feature__text {
  margin-top: 8px;
  font-size: 0.9375rem;
}

/* ---------- 联系我们 ---------- */

.contact {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #ffffff;
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.contact .section__title {
  color: #ffffff;
}

.contact .section__title::before {
  background: #ffffff;
}

.contact .section__lead {
  color: rgba(255, 255, 255, 0.86);
}

.contact__actions {
  margin-top: 28px;
}

.contact-card {
  padding: 10px 28px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(4, 30, 62, 0.28);
}

.contact-card .info-list dt,
.contact-card .info-list dd {
  padding-block: 18px;
}

.contact-card .info-list dd {
  font-size: 1.0625rem;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}

.site-footer img {
  width: auto;
  height: 20px;
}

/* 拼音公司名没有空格，窄屏下允许在任意位置断行 */
.site-footer__copy {
  overflow-wrap: anywhere;
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero__inner,
  .about__inner,
  .product,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero__inner {
    padding-block: 64px 64px;
  }

  /* 单栏时装饰图会把正文推到下一屏，直接隐藏 */
  .hero__art {
    display: none;
  }

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

  .section {
    padding-block: 64px;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 8px;
    font-size: 1rem;
  }

  .lang-switch {
    align-self: flex-start;
    margin: 8px 0 0 8px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 40px, 1120px);
  }

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

  .hero__inner {
    padding-block: 48px 52px;
  }

  .hero__lead {
    font-size: 1.0625rem;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .contact-card {
    padding-inline: 20px;
  }

  .info-list dt {
    padding-right: 16px;
  }

  .section {
    padding-block: 52px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
