/* 客户站模板 · 对齐苹果官网：顶栏、居中大标题、浅灰底、系统字体 */
:root {
  --text: #1d1d1f;
  --muted: #86868b;
  --link: #0066cc;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --bg: #f5f5f7;
  --white: #fff;
  --line: rgba(0, 0, 0, 0.08);
  --dark: #000;
  --max: 980px;
  --nav-h: 48px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC",
    "Helvetica Neue", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: min(100% - 44px, var(--max));
  margin-inline: auto;
}

/* —— 顶栏：毛玻璃，横向 —— */
.nav-bar,
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner,
.site-header .wrap {
  position: relative;
  height: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0.8;
}

.nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border: 0;
  background: transparent;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* —— 首屏：居中标题 —— */
.hero {
  padding: 72px 22px 28px;
  text-align: center;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-headline {
  margin: 0 auto;
  max-width: 14em;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.07;
}

.hero-support {
  margin: 14px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.38;
  font-weight: 400;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
}

.text-link {
  color: var(--link);
  font-size: 19px;
}

.text-link::after {
  content: " ›";
}

.text-link:hover {
  text-decoration: underline;
}

.hero-stage {
  position: relative;
  width: min(100% - 44px, 1100px);
  margin: 36px auto 8px;
  min-height: 560px;
  border-radius: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 36px 40px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55)),
    url("../assets/hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-stage.has-image {
  background-size: cover;
  background-position: center;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

.hero-brand {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

/* —— 区块 —— */
.tile {
  padding: 80px 22px;
  background: var(--bg);
}

.tile-white {
  background: var(--white);
}

.tile-copy {
  width: min(100%, 720px);
  margin: 0 auto 36px;
  text-align: center;
}

.tile-copy-left,
.about-layout .tile-copy {
  text-align: left;
  margin: 0;
}

.about-layout {
  width: min(100% - 44px, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-layout .tile-copy {
  width: auto;
  margin: 0;
}

.about-layout .tile-body {
  margin-left: 0;
  margin-right: 0;
}

.about-photo img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.tile h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.tile-lead {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.38;
}

.tile-body {
  margin: 12px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(100% - 44px, 1100px);
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.fact {
  padding: 8px 8px 0;
}

.fact-value {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

/* —— 能力卡片 —— */
.service-list {
  width: min(100% - 44px, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service-item {
  min-height: 0;
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
  text-align: left;
}

.card-media {
  height: 180px;
  background: #e8e8ed;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-copy {
  padding: 22px 24px 26px;
}

.tile:not(.tile-white) .service-item {
  background: var(--white);
}

.service-item h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 36em;
}

/* —— 案例：深色大卡，接近苹果产品条 —— */
.case-list {
  width: min(100% - 44px, 1100px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.case-item {
  position: relative;
  min-height: 380px;
  padding: 36px 32px;
  border-radius: 18px;
  background: #1d1d1f center / cover no-repeat;
  color: #f5f5f7;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  overflow: hidden;
}

.case-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.72) 100%);
}

.case-item h3,
.case-item p {
  position: relative;
  z-index: 1;
}

.case-item h3 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-item p {
  margin: 0;
  color: #a1a1a6;
  font-size: 17px;
}

/* —— 博客 —— */
.blog-preview {
  border-top: 1px solid var(--line);
}

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

.blog-item:hover span {
  color: var(--link);
}

.blog-item time,
.blog-empty {
  color: var(--muted);
  font-size: 14px;
}

.blog-empty {
  margin: 0;
  padding: 18px 0;
}

/* —— 联系 —— */
.contact-grid {
  width: min(100% - 44px, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-radius: 18px;
  padding: 48px 40px;
}

.contact-meta {
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.contact-row dt {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-row dd {
  margin: 2px 0 0;
  font-size: 17px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  justify-self: start;
  min-width: 140px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue-hover);
}

.form-note,
.form-msg {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-align: left;
}

.form-msg {
  color: var(--link);
  min-height: 1.2em;
}

/* —— 页脚 —— */
.site-footer {
  padding: 22px 0 28px;
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* —— 博客页 —— */
.blog-page {
  padding: 56px 0 80px;
  min-height: 70svh;
  background: var(--white);
}

.blog-page h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.blog-page .lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.blog-page .back {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--link);
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 16px;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open a {
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    opacity: 1;
  }

  .nav-bar,
  .site-header {
    position: sticky;
  }

  .nav-inner,
  .site-header .wrap {
    position: relative;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-support,
  .text-link {
    font-size: 17px;
  }

  .hero-links {
    flex-direction: column;
    gap: 10px;
  }

  .hero-stage {
    min-height: 280px;
    width: min(100% - 32px, 1100px);
    padding: 24px;
  }

  .about-layout,
  .facts,
  .service-list,
  .case-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    height: 240px;
  }

  .contact-grid {
    padding: 28px 20px;
  }

  .tile {
    padding: 56px 0;
  }

  .service-item,
  .case-item {
    min-height: 0;
  }
}
