/*
Theme Name: AISYTH Corporate
Theme URI: https://aisyth.com/
Author: Shanghai Xinglv Yundong Intelligent Technology Co., Ltd.
Author URI: https://aisyth.com/
Description: A clean corporate website theme for Shanghai Xinglv Yundong Intelligent Technology Co., Ltd.
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aisyth-corporate
Tags: custom-logo, one-column, custom-background, featured-images, responsive-layout
*/

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef3f7;
  --ink: #17202a;
  --muted: #607080;
  --line: #d9e2ea;
  --blue: #0f5f8f;
  --cyan: #1397a5;
  --green: #2d8b57;
  --gold: #b7791f;
  --shadow: 0 18px 48px rgba(21, 41, 62, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 234, 0.8);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: var(--container);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
}

.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__cn {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.brand__en {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: #314252;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--surface-soft);
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 2px;
  content: "";
}

.nav-toggle__bar::before {
  transform: translateY(-6px);
}

.nav-toggle__bar::after {
  transform: translateY(4px);
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-color: #102636;
  background-image:
    linear-gradient(90deg, rgba(9, 25, 38, 0.86), rgba(9, 25, 38, 0.46)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 88px 0 104px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #99e1e7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
}

.button--primary {
  background: #ffffff;
  color: #0d354f;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 56px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.hero__fact {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero__fact strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.hero__fact span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  padding: 86px 0;
}

.section--white {
  background: #ffffff;
}

.section__inner {
  width: var(--container);
  margin: 0 auto;
}

.section__head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__label {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.section__intro {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

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

.service-card {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(22, 38, 51, 0.03);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}

.solution-list {
  display: grid;
  gap: 14px;
}

.solution-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-left: 4px solid var(--cyan);
  background: rgba(255, 255, 255, 0.74);
}

.solution-item strong {
  display: block;
  margin-bottom: 4px;
}

.solution-item span {
  color: var(--muted);
  font-size: 15px;
}

.visual-panel {
  min-height: 420px;
  display: grid;
  align-content: end;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 42, 61, 0.08), rgba(17, 42, 61, 0.5)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.visual-panel__caption {
  max-width: 360px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.visual-panel__caption strong {
  display: block;
  margin-bottom: 6px;
}

.visual-panel__caption span {
  color: var(--muted);
  font-size: 14px;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  font-size: 16px;
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.metric strong {
  color: var(--blue);
  font-size: 22px;
}

.metric span {
  color: var(--muted);
}

.contact {
  color: #ffffff;
  background: #102636;
}

.contact .section__intro,
.contact .section__label {
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 40px;
  align-items: end;
}

.contact-box {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.contact-box a {
  display: block;
  margin-top: 8px;
  color: #99e1e7;
  font-size: 20px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 26px 0;
  color: #647484;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.content-page {
  width: min(860px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.content-page h1 {
  margin-top: 0;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.14;
}

.content-page a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .brand__en {
    display: none;
  }

  .service-grid,
  .solution-layout,
  .about-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero__facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1120px);
  }

  .site-header__inner {
    min-height: 64px;
  }

  .brand__cn {
    max-width: calc(100vw - 112px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

  .site-nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: calc(100vh - 64px);
  }

  .hero__inner {
    padding: 58px 0 72px;
  }

  .hero__subtitle,
  .section__intro {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .visual-panel {
    min-height: 320px;
    padding: 18px;
  }

  .site-footer__inner {
    flex-direction: column;
  }
}
