/* Shared view styles for About, Blog and Contact.
 *
 * Single source for the rules that views/shared-views.js markup depends on. Imported into the
 * SPA bundle by styles.css and copied to public/ by build-site.js so the standalone documents
 * can link it alongside static-page.css. Editing these rules in styles.css instead would
 * re-create the SPA/standalone drift this whole module exists to remove.
 */

/* Tokens the view rules reference. Duplicated from styles.css by value so these rules
   also work under static-page.css, whose palette uses different token names
   (--bg/--panel/--orange/--cyan). Identical values in the SPA, so redefining is a no-op there. */
/* Palette comes from tokens.css, which every consumer of this file also loads. */

/* static-page.css constrains bare `main` (max-width 1280px + padding) for the older
   .kicker/.card layouts. Shared views carry their own width and padding, and the contact hero
   is full-bleed, so that wrapper must not double up. Attribute selector outranks the bare
   element rule, so this wins regardless of stylesheet order. */
main[data-static-route-main] {
  max-width: none;
  margin: 0;
  padding: 0;
}

.view-contact {
  display: grid;
  min-height: calc(100vh - 82px);
}



html[lang="zh-CN"] .scramble-word,
html[lang="zh-CN"] .blog-list-title,
html[lang="zh-CN"] .case-file-copy strong {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  letter-spacing: 0;
}


.contact-hero {
  grid-area: 1 / 1;
  position: relative;
  height: calc(100vh - 82px);
  min-height: calc(100vh - 82px);
  overflow: hidden;
}


.contact-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.contact-card {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
  position: relative;
  z-index: 3;
  width: min(560px, calc(100% - 40px));
  margin: clamp(28px, 4vw, 64px) 20px;
  padding: clamp(36px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 182, 136, 0.04), transparent),
    rgba(33, 31, 30, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  text-align: center;
  animation: contact-card-fade 2.5s ease-out both;
}


.contact-card .view-title {
  font-size: 28px;
  font-weight: 500;
}


.contact-card > p {
  color: var(--muted);
}


.contact-form {
  display: grid;
  gap: 28px;
  margin-top: 42px;
  text-align: left;
}


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


.contact-form span {
  color: var(--muted);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.contact-form button {
  justify-self: end;
  margin-top: 18px;
}


.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--secondary);
  text-align: right;
}


@keyframes contact-card-fade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.blog-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) clamp(24px, 4vw, 56px) 128px;
}


.blog-heading {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: 52px;
}


.blog-heading .view-title {
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
}


.blog-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}


.blog-list {
  display: grid;
  gap: 16px;
}


.blog-list-item {
  border-top: 1px solid var(--line);
}


.blog-list-link {
  display: grid;
  grid-template-columns: minmax(110px, 0.22fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}


.blog-list-item:last-child {
  border-bottom: 1px solid var(--line);
}


.blog-list-link:hover,
.blog-list-link:focus-visible {
  color: var(--primary-bright);
  outline: none;
  padding-left: 10px;
}


.blog-list-link time {
  color: var(--tertiary);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}


.blog-list-copy {
  display: grid;
  gap: 8px;
}


.blog-list-title {
  font-family: "Geist", system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
}


.blog-list-summary {
  color: var(--muted);
  line-height: 1.55;
}


.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 34px;
}


.blog-page-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 19, 18, 0.86);
  color: var(--text);
  cursor: pointer;
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0 16px;
  text-transform: uppercase;
}


.blog-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}


.blog-page-button:not(:disabled):hover,
.blog-page-button:not(:disabled):focus-visible {
  border-color: rgba(255, 182, 136, 0.6);
  color: var(--primary-bright);
  outline: none;
}


.blog-page-status {
  color: var(--muted);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.about-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 132px clamp(24px, 4vw, 56px);
}


.about-content > p {
  max-width: 760px;
  margin: 64px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.62;
}

.about-emphasis {
  color: var(--primary-bright);
  font-weight: 650;
}


.about-principles {
  padding-top: 0;
}


.about-principles .view-title {
  color: var(--primary-bright);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


.about-principles ol {
  display: grid;
  gap: 18px;
  margin: 26px 0 0;
  padding-left: 1.4em;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}


.about-principles li::marker {
  color: var(--tertiary);
  font-family: "Geist", system-ui, sans-serif;
  font-weight: 700;
}
@media (max-width: 720px) {

  .contact-card {
    padding: 30px 22px;
  }

  .contact-form button {
    justify-self: stretch;
  }

  .blog-shell {
    padding-top: 84px;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
  }

  .blog-list-link {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* Solution view: shares the blog-shell page rhythm rather than inventing a second one. */
.view-solution {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(96px, 14vh, 140px) clamp(24px, 4vw, 56px) 128px;
  display: grid;
  gap: clamp(56px, 7vh, 88px);
}


.view-solution .view-title {
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
}


.solution-intro {
  display: grid;
  gap: 18px;
  max-width: 820px;
}


.solution-lede {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}


.solution-section-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  margin-bottom: 16px;
}


.view-solution section > p {
  color: var(--muted);
  max-width: 820px;
  line-height: 1.7;
  margin-bottom: 12px;
}


/* One card grid for clusters and models -- they are the same shape. */
.solution-clusters,
.solution-model-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}


.solution-clusters li,
.solution-model-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}


.solution-clusters h3,
.solution-clusters h4,
.solution-model-list h3,
.solution-model-list h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-bright);
}


.solution-clusters p,
.solution-model-list p,
.solution-stages p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}


.solution-range {
  margin-top: 28px;
  padding-left: 18px;
  border-left: 2px solid var(--primary);
}


.solution-stages {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
  display: grid;
  gap: 0;
}


.solution-stages li {
  counter-increment: stage;
  border-top: 1px solid var(--line);
  padding: 22px 0 22px 56px;
  position: relative;
  display: grid;
  gap: 8px;
}


.solution-stages li:last-child {
  border-bottom: 1px solid var(--line);
}


.solution-stages li::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
}


.solution-stages h3,
.solution-stages h4 {
  font-size: 18px;
  font-weight: 600;
}


.solution-commitments {
  margin: 24px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 860px;
}


.solution-commitments li {
  color: var(--muted);
  line-height: 1.65;
  padding-left: 26px;
  position: relative;
}


.solution-commitments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2px;
  background: var(--tertiary);
}


.solution-agreement-link,
.solution-cta-link {
  color: var(--primary-bright);
  text-decoration: underline;
  text-underline-offset: 4px;
}


.solution-cta-link {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: clamp(18px, 2vw, 24px);
}


.solution-cta-link:hover,
.solution-agreement-link:hover {
  color: var(--text);
}
