/* 上海谨念信息科技有限公司 — 谨念信息 Logo：深蓝弧 + 亮青圆点 + 红点缀 */

:root {
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --color-bg: #fafbfc;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c6670;
  --color-primary: #0056d2;
  --color-primary-dark: #003d95;
  --color-cyan: #00b0ff;
  --color-cyan-soft: rgba(0, 176, 255, 0.14);
  --color-red: #e32222;
  --color-red-hover: #ff4444;
  --header-h: 76px;
  --radius: 18px;
  --shadow: 0 4px 20px rgba(0, 86, 210, 0.07), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 16px 40px rgba(0, 86, 210, 0.1), 0 6px 16px rgba(0, 0, 0, 0.06);
  --dot-pattern: radial-gradient(circle, rgba(0, 86, 210, 0.07) 1px, transparent 1px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: var(--dot-pattern);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.hero__title,
.section__title,
.card__title,
.feature__title {
  font-family: var(--font-serif);
  text-rendering: optimizeLegibility;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-cyan);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left, 0px)) 0 max(24px, env(safe-area-inset-right, 0px));
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 86, 210, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.logo__img {
  display: block;
  width: auto;
  max-width: min(100%, 340px);
  max-height: clamp(44px, 5.2vw, 58px);
  height: auto;
  aspect-ratio: 320 / 72;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo:hover .logo__img {
  opacity: 0.97;
}

@media (prefers-reduced-motion: no-preference) {
  .logo:hover .logo__img {
    transform: scale(1.015);
  }
}

@media (max-width: 1040px) {
  .logo {
    max-width: min(52%, 280px);
  }

  .nav a {
    padding: 8px 12px;
    font-size: 0.875rem;
  }
}

@media (max-width: 520px) {
  .logo {
    max-width: calc(100% - 56px);
  }

  .logo__img {
    max-height: 46px;
    max-width: 100%;
  }
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
  background: var(--color-cyan-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 22px 20px;
    background: var(--color-surface);
    border-bottom: 1px solid rgba(0, 86, 210, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 14px;
    border-radius: 14px;
    border-bottom: 1px solid #f0f3f7;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(64px, 12vw, 108px) 0 clamp(72px, 10vw, 96px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 70% at 0% 0%, rgba(0, 86, 210, 0.11), transparent 55%),
    radial-gradient(ellipse 60% 55% at 100% 100%, rgba(0, 176, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #f0f6ff 0%, var(--color-bg) 50%);
  pointer-events: none;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--dot-pattern);
  background-size: 22px 22px;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, black 0%, transparent 88%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 88%);
  pointer-events: none;
}

.hero__deco {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(200px, 42vw);
  height: min(180px, 38vw);
  pointer-events: none;
}

.hero__arc {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 86%;
  padding-bottom: 48%;
  border: clamp(10px, 2.2vw, 14px) solid var(--color-primary);
  border-bottom: none;
  border-radius: 999px 999px 0 0;
  box-sizing: border-box;
  opacity: 0.9;
}

.hero__dots {
  position: absolute;
  bottom: 8%;
  left: 12%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero__dots span {
  display: block;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 2px 10px rgba(0, 176, 255, 0.35);
}

.hero__dots span:nth-child(1) {
  width: 18px;
  height: 18px;
}

.hero__dots span:nth-child(2) {
  width: 14px;
  height: 14px;
  margin-left: 8px;
  opacity: 0.95;
}

.hero__dots span:nth-child(3) {
  width: 10px;
  height: 10px;
  margin-left: 16px;
  opacity: 0.88;
}

.hero__dots span:nth-child(4) {
  width: 7px;
  height: 7px;
  margin-left: 22px;
  opacity: 0.82;
}

@media (max-width: 900px) {
  .hero__deco {
    opacity: 0.5;
    right: 0;
  }
}

@media (max-width: 640px) {
  .hero__deco {
    display: none;
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero__eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.hero__title-accent {
  background: linear-gradient(110deg, var(--color-primary) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__desc {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.btn--primary {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 22px rgba(0, 86, 210, 0.38);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 86, 210, 0.45);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary-dark);
  border: 2px solid var(--color-cyan);
  box-shadow: var(--shadow);
}

.btn--secondary:hover {
  background: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Sections */

.section {
  padding: clamp(68px, 10vw, 96px) 0;
  position: relative;
}

.section--alt {
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(0, 86, 210, 0.04);
}

.section__head {
  text-align: center;
  margin-bottom: 14px;
}

.section__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section__title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cyan));
}

.section__head + .section__lead {
  margin-top: 24px;
}

.section__lead {
  margin: 0 auto 48px;
  max-width: 680px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

/* Card — Logo 弧 + 三圆点 */

.card {
  position: relative;
  padding: 28px 26px 32px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 86, 210, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.section--alt .card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.card__mark {
  display: block;
  position: relative;
  width: 64px;
  height: 58px;
  margin-bottom: 18px;
}

.card__mark-arc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  border: 6px solid var(--color-primary);
  border-bottom: none;
  border-radius: 64px 64px 0 0;
  box-sizing: border-box;
}

.card__mark-dots {
  position: absolute;
  bottom: 0;
  left: 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.card__mark-dot {
  display: block;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 2px 8px rgba(0, 176, 255, 0.35);
}

.card__mark-dot--lg {
  width: 12px;
  height: 12px;
}

.card__mark-dot--md {
  width: 9px;
  height: 9px;
  margin-left: 7px;
}

.card__mark-dot--sm {
  width: 6px;
  height: 6px;
  margin-left: 14px;
  opacity: 0.9;
}

.card__mark-dot--xs {
  width: 4px;
  height: 4px;
  margin-left: 20px;
  opacity: 0.85;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 176, 255, 0.35);
}

.card__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
}

.card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.service-list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 28px 24px 76px;
  margin-bottom: 14px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 86, 210, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-cyan) 0%, rgba(0, 86, 210, 0.35) 100%);
  box-shadow:
    0 0 0 3px var(--color-primary),
    inset 0 -6px 12px rgba(0, 86, 210, 0.12);
}

.service-list li:last-child {
  margin-bottom: 0;
}

.service-list li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 480px) {
  .service-list li {
    padding: 20px 18px 22px 68px;
  }

  .service-list li::before {
    left: 16px;
    width: 36px;
    height: 36px;
  }
}

.service-list strong {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--color-text);
}

.service-list span {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.feature {
  position: relative;
  padding: 28px 28px 28px 32px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid rgba(0, 86, 210, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.section--alt .feature {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-cyan), var(--color-primary));
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 12px;
  padding: 0 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-cyan-soft);
  border-radius: 999px;
}

.feature__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.feature__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Contact */

.contact {
  background: linear-gradient(180deg, var(--color-bg) 0%, #e8f0fc 100%);
}

.contact__box {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 40px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 86, 210, 0.1);
}

.contact__row {
  margin: 0 0 18px;
  font-size: 1rem;
}

.contact__row:last-child {
  margin-bottom: 0;
}

.contact__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact__link {
  font-weight: 700;
  font-size: 1.0625rem;
  word-break: break-all;
  color: var(--color-primary);
}

.contact__link:hover {
  color: var(--color-red);
}

/* Footer */

.footer {
  position: relative;
  padding: 36px 0 max(42px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0c1829 0%, #060d16 100%);
  color: #8b9cb0;
  font-size: 0.875rem;
  text-align: center;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-cyan), var(--color-primary), transparent);
  opacity: 0.85;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer__name {
  margin: 0;
  color: #e8ecf2;
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer__icp a {
  color: #8b9cb0;
}

.footer__icp a:hover {
  color: var(--color-cyan);
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: #5a6b7d;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .feature:hover,
  .service-list li:hover,
  .btn--primary:hover,
  .btn--secondary:hover {
    transform: none;
  }
}
