:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f7f5fb;
  --text: #242235;
  --muted: #686175;
  --line: #e9e3f1;
  --pink: #ff4f92;
  --pink-dark: #d92f75;
  --violet: #6b48ff;
  --cyan: #20aeea;
  --gold: #ffb323;
  --shadow: 0 18px 45px rgba(58, 43, 98, 0.12);
  --shadow-strong: 0 24px 58px rgba(58, 43, 98, 0.18);
  --radius: 8px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 79, 146, 0.34);
  outline-offset: 3px;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-130%);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--violet);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(233, 227, 241, 0.9);
  box-shadow: 0 8px 26px rgba(52, 38, 84, 0.08);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, color 180ms ease;
}

.brand:hover {
  color: var(--pink-dark);
  transform: translateY(-1px);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(58, 43, 98, 0.1);
}

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

.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 6px;
  color: #3f3851;
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--pink-dark);
  background: rgba(255, 79, 146, 0.09);
  transform: translateY(-1px);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 7% 8% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 79, 146, 0.24), rgba(107, 72, 255, 0));
  filter: blur(8px);
  pointer-events: none;
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 37%, rgba(255,255,255,0.35) 70%, rgba(255,255,255,0.68) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.98) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 128px 0 84px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--pink-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 680px;
  margin: 24px 0 0;
  color: #4c465e;
  font-size: 20px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 14px 30px rgba(255, 79, 146, 0.28);
}

.btn.primary:hover {
  box-shadow: 0 18px 38px rgba(255, 79, 146, 0.38);
}

.btn.secondary {
  color: var(--violet);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(107, 72, 255, 0.25);
}

.btn.secondary:hover {
  border-color: rgba(107, 72, 255, 0.48);
  box-shadow: 0 14px 30px rgba(107, 72, 255, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(233, 227, 241, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 34px rgba(58, 43, 98, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-stats li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan));
  opacity: 0;
  transition: opacity 180ms ease;
}

.hero-stats li:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 79, 146, 0.34);
  box-shadow: var(--shadow);
}

.hero-stats li:hover::before {
  opacity: 1;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 18px;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section h2 {
  margin: 0;
  color: #075fc7;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: 0;
}

.section-heading p:last-child,
.split-copy p,
.guide-panel p,
.faq-head p {
  color: var(--muted);
}

.development,
.works,
.faq {
  background: var(--soft);
}

.works {
  background: #f4f8fc;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 54px;
  align-items: center;
}

.split-copy p {
  margin: 20px 0 0;
}

.development-head {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}

.development-head h2 {
  color: #075fc7;
}

.development-head p:last-child {
  margin: 26px 0 0;
  color: #2f2d38;
  font-size: 20px;
  line-height: 1.95;
}

.history-list {
  display: grid;
  gap: 26px;
  max-width: 940px;
  margin: 46px auto 0;
}

.history-list article {
  position: relative;
  padding: 30px 34px 30px 38px;
  border: 1px solid rgba(226, 232, 242, 0.9);
  border-left: 6px solid #0874d8;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 32px rgba(52, 73, 105, 0.11);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.history-list article:hover {
  transform: translateX(4px);
  border-color: rgba(8, 116, 216, 0.28);
  border-left-color: var(--pink);
  box-shadow: var(--shadow-strong);
}

.history-list h3,
.feature-card h3,
.work-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.history-list h3 {
  color: #075fc7;
  font-weight: 900;
}

.history-list p,
.feature-card p,
.work-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.history-list p {
  margin-top: 16px;
  color: #33313d;
  font-size: 18px;
  line-height: 1.9;
}

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

.feature-card {
  position: relative;
  min-height: 330px;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(58, 43, 98, 0.08);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 79, 146, 0.08);
  transform: scale(0.4);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 79, 146, 0.32);
  box-shadow: var(--shadow-strong);
}

.feature-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 8px;
  color: var(--pink);
  background: linear-gradient(135deg, rgba(255, 79, 146, 0.14), rgba(107, 72, 255, 0.12));
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.feature-card:hover .feature-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  transform: rotate(-3deg) scale(1.06);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

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

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 242, 0.9);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 42px rgba(52, 73, 105, 0.11);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.work-card img {
  width: 100%;
  height: 210px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #eef3f8;
  transition: transform 260ms ease, filter 260ms ease;
}

.work-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.work-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 32px 28px;
}

.work-card h3 {
  color: #0874d8;
}

.rating {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 20px;
  padding-top: 0;
}

.rating span {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0;
}

.rating strong {
  font-size: 15px;
}

.rating small {
  color: #90879d;
}

.guide {
  padding: 74px 0;
  background: #fff;
}

.guide-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border: 1px solid rgba(107, 72, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 79, 146, 0.08), rgba(107, 72, 255, 0.08)),
    #fff;
}

.guide-panel h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.guide-panel p {
  max-width: 780px;
  margin: 16px 0 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 52px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(58, 43, 98, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 79, 146, 0.28);
  box-shadow: 0 16px 34px rgba(58, 43, 98, 0.11);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.faq-question:hover {
  color: var(--pink-dark);
  background: rgba(255, 79, 146, 0.04);
}

.faq-question i {
  position: relative;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.faq-question i::before,
.faq-question i::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
  background: var(--pink);
}

.faq-question i::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.faq-question[aria-expanded="true"] i::after {
  transform: rotate(0);
}

.faq-answer {
  padding: 0 22px 22px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: #575068;
  font-weight: 700;
}

.footer-links a {
  transition: color 180ms ease, transform 180ms ease;
}

.footer-links a:hover {
  color: var(--pink-dark);
  transform: translateY(-1px);
}

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

  .nav-links {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px 14px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.78) 52%, rgba(255,255,255,0.96) 100%);
  }

  .hero-content {
    padding-top: 118px;
  }

  .hero-stats,
  .split,
  .feature-grid,
  .works-grid,
  .faq-layout {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .faq-layout {
    gap: 34px;
  }

  .faq-head {
    grid-column: 1 / -1;
  }

  .work-card img {
    height: clamp(210px, 28vw, 250px);
  }

  .guide-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 66px;
  }

  .brand {
    font-size: 20px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .nav-links {
    top: 66px;
    right: 14px;
    left: 14px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding: 104px 0 58px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats,
  .split,
  .feature-grid,
  .works-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .feature-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .work-card img {
    height: min(56vw, 230px);
  }

  .work-body {
    padding: 26px 24px 24px;
  }

  .development-head p:last-child {
    font-size: 17px;
    line-height: 1.85;
  }

  .history-list {
    gap: 18px;
    margin-top: 30px;
  }

  .history-list article {
    padding: 24px 20px 24px 24px;
  }

  .history-list p {
    font-size: 16px;
  }

  .guide-panel {
    padding: 28px 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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