/* ---------- wide screens: keep the 1440 hero art, extend it ---------- */
.hero {
  background-size: max(1440px, 100%) auto;
  background-position: center bottom;
}

/* ---------- ≤1279: fluid layout, content-driven heights ---------- */
@media (max-width: 1279px) {
  .arch {
    grid-template-columns: 1fr;
  }

  .arch__side .arch__cells {
    flex-direction: row;
  }

  .arch__side .arch__cell {
    flex: 1 1 auto;
  }

  .container {
    width: auto;
    margin: 0 40px;
  }

  .header__inner {
    padding: 0 32px;
  }

  .header__brand {
    width: auto;
    margin-right: 40px;
  }

  .header__nav {
    gap: 24px;
  }

  .header__aside > .header__lang {
    display: none;
  }

  .footer__inner {
    padding: 0 40px;
  }

  .footer__top {
    height: auto;
    padding-bottom: 48px;
  }

  .footer__brand {
    width: 36%;
  }

  .footer__col {
    width: 21%;
  }

  .home-biz, .home-arch, .home-ind, .home-tech,
  .tech-arch, .tech-stack, .tech-results, .tech-idea,
  .about-intro, .about-gene,
  .biz--token, .biz--dc {
    height: auto;
    padding-bottom: 90px;
  }

  .stats, .inquiry {
    height: auto;
    padding-bottom: 80px;
  }

  .inquiry__inner, .inquiry__form {
    height: auto;
  }

  .inquiry__inner {
    gap: 40px;
  }

  .inquiry__form {
    flex: 1;
    width: auto;
    max-width: 680px;
  }

  .biz-card, .tech-card, .stack-card, .result-card, .mode-card, .coop-card,
  .team__card, .contact__info, .news-row {
    height: auto;
  }

  .biz-card__body {
    padding-bottom: 36px;
  }

  .tech-card, .stack-card, .result-card, .mode-card, .coop-card {
    padding-bottom: 30px;
  }

  .team__card {
    padding-bottom: 26px;
  }

  .biz__desc, .news-row__text, .tech-idea__text, .result-card p,
  .footer__slogan, .stat span, .contact__list li, .team__card p, .bullets, .stack-card p {
    line-height: 1.7;
  }

  .biz__img {
    width: 55%;
    height: auto;
  }

  .tags {
    width: auto;
  }

  .partners {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .hero__desc {
    width: auto;
    max-width: 612px;
  }

  .article__inner {
    margin: 0 40px;
  }
}

/* ---------- ≤1023: tablet, hamburger navigation ---------- */
@media (max-width: 1023px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .header__toggle {
    display: flex;
    width: 24px;
    height: 24px;
    color: #1e1e1e;
  }

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

  .header__toggle-close,
  .header.is-open .header__toggle-open {
    display: none;
  }

  .header.is-open .header__toggle-close {
    display: block;
  }

  .mnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 4px 32px 24px;
    background: #fff;
    border-bottom: 1px solid #ede4e7;
    box-shadow: 0 16px 32px rgb(20 20 22 / .08);
  }

  .header.is-open .mnav {
    display: flex;
  }

  .mnav .header__link {
    font-size: 16px;
    line-height: 52px;
    border-bottom: 1px solid #f3eef0;
  }

  .mnav__lang {
    padding: 16px 0 0;
    font-size: 15px;
  }

  .mnav__cta {
    margin-top: 20px;
  }

  html.no-scroll {
    overflow: hidden;
  }

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

  .sol-flow__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .sol__stat {
    padding: 18px 20px;
  }

  .sol__stat strong {
    font-size: 24px;
  }

  .biz__media {
    flex-direction: column;
    align-items: stretch;
  }

  .biz__img {
    width: 100%;
  }

  .biz__aside,
  .biz__media--dc .biz__aside {
    margin: 32px 0 0;
  }

  .inquiry__inner,
  .contact__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .inquiry__intro,
  .contact__info {
    width: auto;
  }

  .inquiry__form {
    max-width: none;
  }

  .arch__head {
    width: 168px;
  }

  .footer__top {
    flex-wrap: wrap;
    row-gap: 36px;
  }

  .footer__brand {
    width: 100%;
  }

  .footer__col,
  .footer__col:last-child {
    width: 33.33%;
  }

  .stats__inner {
    flex-wrap: wrap;
    row-gap: 32px;
  }

  .stat {
    width: 50%;
  }

  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    height: auto;
    padding: 24px 0;
  }
}

/* ---------- ≤767: mobile (375 design) ---------- */
@media (max-width: 767px) {
  :root {
    --header-h: 60px;
  }

  .pc-only {
    display: none !important;
  }

  span.m-only {
    display: inline !important;
  }

  p.m-only {
    display: block !important;
  }

  .btn.m-only {
    display: flex !important;
  }

  .container {
    margin: 0 20px;
  }

  /* header */
  .header__inner {
    padding: 0 20px;
  }

  .header__brand {
    margin-right: 0;
  }

  .header__logo {
    height: 30px;
  }

  .header__aside {
    margin-left: auto;
  }

  .mnav {
    padding: 4px 20px 24px;
  }

  /* simplified pink footer */
  .footer {
    background: var(--pink-bg);
    border-top: 1px solid #f1e5e7;
  }

  .footer__inner {
    padding: 0 20px;
  }

  .footer__top {
    display: none;
  }

  .footer__bottom {
    gap: 9px;
    padding: 26px 0 38px;
    font-size: 12.5px;
    line-height: 1.2;
    color: #9e999d;
  }

  .footer__legal {
    gap: 14px;
  }

  /* banner & generic sections */
  .banner {
    height: auto;
    padding: 40px 0 38px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .banner__title {
    margin-top: 16px;
    font-size: 26px;
  }

  .section__title,
  .about__title,
  .tech-arch__title {
    font-size: 22px;
  }

  .eyebrow + .section__title,
  .home-arch .section__title,
  .home-tech .section__title,
  .home-ind .section__title {
    margin-top: 14px;
  }

  .tech-arch__title {
    margin: 14px 0 24px;
  }

  .home-biz, .home-arch, .home-ind, .home-tech,
  .tech-arch, .tech-stack, .tech-results, .tech-idea,
  .about-intro, .about-gene,
  .biz--token, .biz--dc, .contact {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tech-stack__grid,
  .team,
  .tech-results__grid,
  .modes,
  .coops,
  .partners,
  .timeline {
    margin-top: 24px;
  }

  /* architecture */
  .arch__layer {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
  }

  .arch__head {
    width: auto;
    margin-bottom: 14px;
  }

  .arch__group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .arch__side .arch__head {
    margin-bottom: 0;
  }

  /* product */
  .biz__title {
    margin-top: 12px;
    font-size: 24px;
  }

  .biz__desc {
    margin-top: 18px;
    font-size: 14px;
  }

  .biz__media,
  .biz__media--dc {
    margin-top: 24px;
  }

  .biz__subhead {
    font-size: 18px;
  }

  .biz__subhead--block,
  .abilities + .biz__subhead--block,
  .biz--dc .biz__subhead--block {
    margin-top: 32px;
  }

  .abilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .bullets {
    gap: 10px;
    font-size: 15px;
  }

  .tags li {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .mode-card,
  .coop-card {
    padding: 24px 20px;
  }

  /* solutions */
  .sol,
  .sol-flow,
  .sol-faq {
    padding: 48px 0;
  }

  .sol-tabs__inner {
    gap: 20px;
    height: 48px;
  }

  .sol-tabs a + .sol-tabs__group {
    padding-left: 20px;
  }

  .sol {
    scroll-margin-top: calc(var(--header-h) + 48px);
  }

  .sol__head,
  .sol-faq__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sol__title {
    font-size: 22px;
  }

  .sol__title svg {
    width: 28px;
    height: 28px;
  }

  .sol__stats {
    margin-top: 24px;
  }

  .sol__stat {
    padding: 14px 10px;
  }

  .sol__stat strong {
    display: block;
    font-size: 17px;
    white-space: normal;
  }

  .sol__stat span {
    font-size: 11px;
    line-height: 1.4;
  }

  .sol__grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sol-card {
    padding: 14px 12px 16px;
  }

  .sol-card h4 {
    font-size: 14px;
  }

  .sol-card p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
  }

  .sol__sub {
    margin-top: 28px;
  }

  .sol-flow__list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  /* about */
  .about-intro__zh {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.8;
  }

  .gene {
    padding: 24px 20px 28px;
  }

  .gene h3 {
    font-size: 22px;
  }

  /* news */
  .chips {
    gap: 10px;
  }

  .chip {
    height: 36px;
    padding: 0 18px;
    font-size: 14px;
  }

  .chip:first-child {
    width: auto;
    padding: 0 18px;
  }

  .news-rows {
    margin-top: 24px;
    gap: 16px;
  }

  .news-row {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }

  .news-row__thumb {
    width: auto;
    height: 160px;
    border-radius: 0;
  }

  .news-row__body {
    margin: 0;
    padding: 18px 18px 22px;
  }

  .news-row__title {
    margin-top: 10px;
    font-size: 17px;
  }

  .news-row__text {
    margin-top: 8px;
    font-size: 13px;
  }

  .article {
    padding: 36px 0 48px;
  }

  .article__inner {
    width: auto;
    margin: 0 20px;
  }

  .article__title {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.03em;
  }

  .article__meta {
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 16px;
    line-height: 1.4;
  }

  .article__figure {
    height: 200px;
    margin-top: 20px;
    font-size: 40px;
  }

  .article__body {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.8;
  }

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

  /* contact */
  .contact__info,
  .contact__form {
    padding: 26px 20px;
  }

  .contact__title {
    font-size: 19px;
  }

  .contact__list {
    gap: 18px;
    margin-top: 20px;
    font-size: 14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-tip {
    position: static;
    transform: none;
    margin-bottom: 10px;
  }

  .contact__submit,
  .inquiry__submit {
    width: 100%;
  }

  .contact__map {
    height: 200px;
    font-size: 32px;
  }

  /* ----- home (follows the 375 mobile design) ----- */
  .hero {
    height: auto;
    padding: 46px 0 51px;
    background: linear-gradient(180deg, var(--tint) 0, var(--tint) 70px, #fff 300px);
    color: var(--text);
  }

  .hero::before {
    display: none;
  }

  .hero__inner {
    padding-top: 0;
    margin: 0 24px;
  }

  .hero__pill,
  .hero__en {
    display: none;
  }

  .hero__title {
    gap: 20px;
    margin-top: 0;
    font-size: 29px;
    line-height: 36px;
    letter-spacing: -0.01em;
  }

  .hero__title-red {
    color: var(--red);
    letter-spacing: -0.045em;
  }

  .hero__desc {
    margin-top: 15px;
    font-size: 14px;
    line-height: 24px;
    letter-spacing: -0.045em;
    color: #5f6269;
  }

  .hero__actions {
    gap: 12px;
    margin-top: 18px;
  }

  .hero__btn {
    height: 49px;
    font-size: 15px;
    font-weight: 700;
  }

  .hero .btn--grad {
    background: var(--red);
  }

  .hero .btn--ghost-light {
    color: var(--red);
    background: #fff;
    border: 1px solid var(--red);
  }

  .home-arch,
  .home-biz .eyebrow,
  .home-biz .section__title,
  .inquiry .eyebrow,
  .inquiry__form {
    display: none;
  }

  .home-biz {
    padding: 24px 0 0;
  }

  /* 技术亮点 / 行业场景：两列紧凑卡片 */
  .home-tech {
    margin-top: 32px;
    border-radius: 16px;
  }

  .home-tech .tech-cards,
  .home-ind .ind-cards {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .tech-card {
    height: auto;
    padding: 16px 14px;
  }

  .tech-card svg,
  .ind-card svg {
    width: 26px;
    height: 26px;
  }

  .tech-card h3,
  .ind-card h3 {
    margin-top: 10px;
    font-size: 14px;
  }

  .tech-card p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
  }

  .ind-card {
    padding-bottom: 14px;
  }

  .ind-card__top {
    height: 56px;
    padding-left: 14px;
  }

  .ind-card h3 {
    margin: 10px 14px 0;
  }

  .ind-card p {
    margin: 4px 14px 0;
    font-size: 12px;
    line-height: 1.5;
  }

  .biz-cards {
    gap: 16px;
    margin-top: 0;
  }

  .biz-card {
    display: flex;
    align-items: center;
    height: 108px;
    padding: 0 17px;
    border-color: #ececee;
    border-radius: 12px;
  }

  .biz-card img {
    flex: none;
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
  }

  .biz-card__en,
  .biz-card__text {
    display: none;
  }

  .biz-card__body {
    padding: 0 0 0 15px;
  }

  .biz-card h3 {
    font-size: 16px;
  }

  .stats {
    padding: 28px 0 0;
    background: #fff;
  }

  .stats__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 17px;
  }

  .stat {
    width: auto;
    min-height: 92px;
    padding: 20px 0 16px 16px;
    border: 1px solid #ececee;
    border-radius: 12px;
  }

  .stat__num {
    font-size: 20px;
    line-height: 32px;
    white-space: nowrap;
  }

  .stat span {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.03em;
  }

  .inquiry {
    padding: 30.5px 0 31.5px;
  }

  .inquiry__intro {
    margin-top: 0;
  }

  .inquiry__title {
    margin-top: 0;
    font-size: 18px;
    line-height: 26px;
    letter-spacing: -0.01em;
  }

  .inquiry__desc {
    margin-top: 17.5px;
    font-size: 13px;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .inquiry__cta {
    width: 100%;
    height: 52px;
    margin-top: 9.5px;
    border-radius: 8px;
    font-size: 15px;
  }
}
