/* FTIR.fun spectrum-first design system (new templates only) */
:root {
  --sf-paper: #f6f5f1;
  --sf-paper-2: #efeee8;
  --sf-ink: #14161a;
  --sf-ink-2: #2a2e35;
  --sf-mut: #54595f;
  --sf-line: #d9d6cc;
  --sf-line-2: #c6c2b6;
  --sf-green: #0f7a5a;
  --sf-green-d: #0b5b43;
  --sf-soft: #e8f1ec;
  --sf-mono:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
body.sf-body {
  background: var(--sf-paper);
  color: var(--sf-ink);
}
.sf-page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px 80px;
  color: var(--sf-ink);
}
.sf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 52px;
  align-items: center;
  padding: 56px 0 26px;
  border-bottom: 1px solid var(--sf-ink);
}
.sf-kicker {
  font-family: var(--sf-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sf-green-d);
  padding-left: 12px;
  border-left: 2px solid var(--sf-green);
  margin: 0 0 14px;
}
.sf-h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
}
.sf-h2 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.sf-h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 6px;
}
.sf-lead {
  font-size: 16.5px;
  line-height: 1.64;
  color: var(--sf-mut);
  margin: 0 0 22px;
  max-width: 62ch;
}
.sf-p {
  color: var(--sf-mut);
  line-height: 1.62;
}
.sf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--sf-line-2);
  color: var(--sf-ink);
  background: transparent;
}
.sf-btn--primary {
  background: var(--sf-green);
  border-color: var(--sf-green);
  color: #fff;
}
.sf-btn--primary:hover {
  background: var(--sf-green-d);
  border-color: var(--sf-green-d);
}
.sf-btn:hover {
  border-color: var(--sf-ink);
}
.sf-visual img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--sf-line);
  border-radius: 3px;
}

/* 波数刻度线 */
.sf-axis {
  position: relative;
  height: 16px;
  margin: 0;
  border-bottom: 1px solid var(--sf-line-2);
  background-image: repeating-linear-gradient(
    to right,
    var(--sf-line-2) 0 1px,
    transparent 1px 64px
  );
  background-size: 100% 8px;
  background-position: bottom;
  background-repeat: no-repeat;
}
.sf-axis__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--sf-mono);
  font-size: 10px;
  color: var(--sf-mut);
  margin-top: 6px;
}

.sf-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--sf-line);
}
.sf-fact {
  padding: 18px 22px;
  border-left: 1px solid var(--sf-line);
}
.sf-fact:first-child {
  border-left: 0;
  padding-left: 0;
}
.sf-fact strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.sf-fact span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sf-mut);
}

.sf-section {
  padding: 44px 0 8px;
}
.sf-section--ruled {
  border-top: 1px solid var(--sf-ink);
}
.sf-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
}
.sf-cols > * {
  padding: 0 26px;
  border-left: 1px solid var(--sf-line);
}
.sf-cols > *:first-child {
  border-left: 0;
  padding-left: 0;
}
.sf-cols p {
  font-size: 14.5px;
  color: var(--sf-mut);
  margin: 0;
}

.sf-grid2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 22px;
}
.sf-panel {
  border-top: 1px solid var(--sf-ink);
  padding-top: 20px;
}
.sf-price__label {
  font-family: var(--sf-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sf-green-d);
}
.sf-price__amount {
  font-family: var(--sf-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 6px;
}
.sf-price__amount small {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--sf-mut);
}
.sf-list {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.sf-list li {
  display: flex;
  gap: 8px;
}
.sf-list i {
  color: var(--sf-green);
  margin-top: 3px;
}
.sf-ol {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--sf-mut);
  font-size: 14px;
  line-height: 1.8;
}

.sf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}
.sf-table th,
.sf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--sf-line);
  text-align: left;
  vertical-align: top;
}
.sf-table thead th {
  font-family: var(--sf-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sf-ink);
  border-bottom: 1px solid var(--sf-ink);
  background: transparent;
}
.sf-table tbody th {
  width: 20%;
  font-weight: 600;
}

.sf-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.sf-switch a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--sf-line);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
}
.sf-switch a:hover {
  border-color: var(--sf-green);
}
.sf-switch strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.sf-switch span {
  font-size: 13px;
  color: var(--sf-mut);
  line-height: 1.5;
}

.sf-note {
  font-size: 13px;
  color: var(--sf-mut);
}
.sf-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.sf-form input[type="file"] {
  font-size: 13px;
}
.sf-error {
  padding: 10px 12px;
  border: 1px solid #e0b4b4;
  border-left: 3px solid #a83232;
  background: #fbf1f1;
  color: #7a2222;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .sf-page {
    padding: 0 24px 56px;
  }
  .sf-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 36px;
  }
  .sf-facts {
    grid-template-columns: 1fr 1fr;
  }
  .sf-fact:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .sf-cols {
    grid-template-columns: 1fr;
  }
  .sf-cols > * {
    border-left: 0;
    border-top: 1px solid var(--sf-line);
    padding: 16px 0;
  }
  .sf-cols > *:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .sf-grid2,
  .sf-switch {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .sf-page {
    padding: 0 20px 44px;
  }
  .sf-h1 {
    font-size: 30px;
  }
  .sf-facts {
    grid-template-columns: 1fr;
  }
  .sf-fact {
    border-left: 0;
    border-top: 1px solid var(--sf-line);
    padding: 14px 0;
  }
  .sf-fact:first-child {
    border-top: 0;
  }
  .sf-btn {
    width: 100%;
    height: 48px;
  }
  .sf-table {
    display: block;
    overflow-x: auto;
  }
}
/* 机构服务工作流行 */
.sf-cols .sf-col {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 14px 26px;
  border-left: 1px solid var(--sf-line);
}
.sf-cols .sf-col:first-child {
  border-left: 0;
  padding-left: 0;
}
.sf-cols .sf-col strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}
.sf-cols .sf-col p {
  font-size: 14px;
  color: var(--sf-mut);
  margin: 0 0 6px;
}
.sf-cols .sf-col span {
  font-family: var(--sf-mono);
  color: var(--sf-green);
}
.sf-cols .sf-col:hover strong {
  color: var(--sf-green-d);
}
.sf-cols {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (max-width: 900px) {
  .sf-cols .sf-col {
    border-left: 0;
    border-top: 1px solid var(--sf-line);
    padding: 14px 0;
  }
  .sf-cols .sf-col:first-child {
    border-top: 0;
  }
}

/* Shared tokens apply only to templates that opt into the new design. */
body.sf-body {
  --ft2-paper: var(--sf-paper);
  --ft2-ink: var(--sf-ink);
  --ft2-muted: var(--sf-mut);
  --ft2-line: var(--sf-line);
  --ft2-green: var(--sf-green);
  --ft2-green-strong: var(--sf-green-d);
  --ft2-r-sm: 3px;
  --ft2-r-md: 3px;
  --ft2-r-lg: 3px;
  --ft2-r-xl: 3px;
  --ft2-shadow-xs: none;
  --ft2-shadow-sm: none;
  --ft2-shadow-md: none;
  background: var(--sf-paper);
  color: var(--sf-ink);
}
body.sf-body .ft-wide-main {
  min-width: 0;
}
body.sf-body
  :is(
    .ft-page-shell,
    .svp-shell,
    .ft2-find,
    .ft2-request-shell,
    .gw-page,
    .sf-page
  ) {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 44px 32px 72px;
}
body.sf-body :is(.ft2-h1, .svp-hero__title, .sf-h1) {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--sf-ink);
}
body.sf-body :is(.ft2-kicker, .svp-hero__eyebrow, .gw-kicker) {
  font: 500 11px/1.5 var(--sf-mono);
  letter-spacing: 0.14em;
  color: var(--sf-green-d);
}
body.sf-body :is(.sf-heading, .ft-auto-hero) {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px 44px;
  max-width: none !important;
  padding: 8px 0 30px !important;
  margin: 0 0 28px;
  text-align: left !important;
  border-bottom: 1px solid var(--sf-ink) !important;
}
:is(.sf-heading, .ft-auto-hero) > :is(.svp-hero__eyebrow, .ft2-kicker) {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
:is(.sf-heading, .ft-auto-hero) > :is(.svp-hero__title, .ft2-h1) {
  grid-column: 1;
  grid-row: 2;
  margin: 0 !important;
}
body.sf-body :is(.sf-heading, .ft-auto-hero) > :is(.svp-hero__desc, .ft2-lead) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: none !important;
  margin: 0 !important;
  color: var(--sf-mut);
  font-size: 16px;
  line-height: 1.7;
}
body.sf-body .sf-heading-copy {
  max-width: 960px;
}
body.sf-body .sf-choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--sf-line);
  margin: 28px 0;
}
body.sf-body .sf-choice-row > :is(article, .native-spectrum-product-card) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 10px 28px 28px !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-left: 1px solid var(--sf-line) !important;
  border-radius: 0 !important;
}
body.sf-body .sf-choice-row > :first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}
.sf-choice-row > article > p {
  flex: 1;
}
body.sf-body .sf-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 28px;
  align-items: start;
}
body.sf-body
  :is(
    .ft-auto-card,
    .native-spectrum-card,
    .native-spectrum-batch,
    .native-spectrum-result,
    .native-spectrum-local-editions
  ) {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--sf-line);
  border-radius: 3px;
  box-shadow: none;
}
body.sf-body .sf-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--sf-ink);
  padding-top: 28px;
  margin-top: 28px;
}
body.sf-body .sf-request-aside {
  padding: 0 24px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.sf-body .ft2-request-form {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.sf-body :is(.ft2-find-console, .gw-buy) {
  background: transparent;
  border: 1px solid var(--sf-line);
  border-radius: 3px;
  box-shadow: none;
}
body.sf-body .ft2-find-console {
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--sf-line);
}
body.sf-body .ft2-find-console__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
body.sf-body .ft2-find-form {
  display: flex;
  gap: 10px;
}
body.sf-body .ft2-find-form input[type="text"] {
  flex: 1;
  min-width: 0;
  height: 46px;
}
body.sf-body .ft2-find-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
body.sf-body .ft2-find-hints span {
  font: 12px/1.5 var(--sf-mono);
  padding: 4px 10px;
  border: 1px solid var(--sf-line);
}
body.sf-body :is(.ft2-find-next, .sf-feature-row) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 32px;
}
body.sf-body :is(.ft2-find-next article, .sf-feature-row > .gw-card) {
  min-width: 0;
  border: 0;
  border-left: 1px solid var(--sf-line);
  padding: 12px 24px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
body.sf-body
  :is(.ft2-find-next article, .sf-feature-row > .gw-card):first-child {
  border-left: 0;
  padding-left: 0;
}
body.sf-body .svp-decision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid var(--sf-line);
}
body.sf-body .svp-decision__panel {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--sf-line);
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
}
body.sf-body .svp-decision__panel:first-child {
  border-left: 0;
  padding-left: 0;
}
body.sf-body :is(.svp-price-card, .svp-plan-summary__item) {
  border: 1px solid var(--sf-line);
  border-radius: 3px;
  box-shadow: none;
}
body.sf-body :is(.svp-price-card__amount, .gw-buy__amount) {
  font-family: var(--sf-mono);
  font-variant-numeric: tabular-nums;
}
body.sf-body .hdr-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--sf-ink);
}
body.sf-body .hdr-tcard {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--sf-line);
  padding: 24px;
  border-radius: 0;
  box-shadow: none;
}
body.sf-body .hdr-tcard:first-child {
  border-left: 0;
  padding-left: 0;
}
body.sf-body .hdr-tcard:hover {
  transform: none;
  box-shadow: none;
}
body.sf-body .hdr-tcard__ic {
  display: none;
}
body.sf-body :is(.hdr-tcard__tag, .hdr-tcard__go) {
  display: inline;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
body.sf-body .hdr-tcard__tag {
  font: 11px/1.5 var(--sf-mono);
  letter-spacing: 0.1em;
  color: var(--sf-green-d);
}
body.sf-body .hdr-tcard__go {
  border-bottom: 1px solid var(--sf-green);
}
body.sf-body .hdr-hero-preview {
  border: 1px solid var(--sf-line);
  border-radius: 3px;
  box-shadow: none;
}
body.sf-body :is(.hdr-feed, .hdr-forum-box) {
  border-color: var(--sf-line);
  border-radius: 3px;
  box-shadow: none;
}
body.sf-body :is(.ft-button, .ft2-btn, .hdr-btn, .gw-btn) {
  border-radius: 3px;
  box-shadow: none;
}
/* Scrolling is local to data/code containers; canvas dimensions and JS states stay untouched. */
body.sf-body
  :is(
    .ft-code-wrap,
    .native-spectrum-batch-table-wrap,
    .native-spectrum-local-table-wrap,
    .svc-matrix-wrap
  ) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
body.sf-body .ft-field {
  min-width: 0;
}
body.sf-body
  .ft-field
  :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  max-width: 100%;
  min-width: 0;
}
body.sf-body .sf-cols {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.sf-forum,
.sf-online {
  --ft2-ink: #14161a;
  --ft2-line: #d9d6cc;
  min-width: 0;
  color: var(--sf-ink);
}
.sf-forum .row {
  border-bottom: 1px solid var(--sf-line);
}
.sf-online .headline {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--sf-line);
}
@media (max-width: 1024px) {
  body.sf-body .hdr-tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.sf-body .hdr-tcard {
    padding: 20px;
  }
}
@media (max-width: 800px) {
  body.sf-body
    :is(
      .ft-page-shell,
      .svp-shell,
      .ft2-find,
      .ft2-request-shell,
      .gw-page,
      .sf-page
    ) {
    padding: 28px 18px 48px;
  }
  body.sf-body :is(.sf-heading, .ft-auto-hero) {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  body.sf-body
    :is(.sf-heading, .ft-auto-hero)
    > :is(
      .svp-hero__eyebrow,
      .ft2-kicker,
      .svp-hero__title,
      .ft2-h1,
      .svp-hero__desc,
      .ft2-lead
    ) {
    grid-column: 1;
    grid-row: auto;
  }
  body.sf-body
    :is(
      .sf-choice-row,
      .sf-workbench-grid,
      .sf-request-grid,
      .svp-decision,
      .ft2-find-next,
      .sf-feature-row
    ) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.sf-body .sf-choice-row > :is(article, .native-spectrum-product-card),
  body.sf-body .svp-decision__panel,
  body.sf-body .ft2-find-next article,
  body.sf-body .sf-feature-row > .gw-card {
    border-left: 0 !important;
    border-top: 1px solid var(--sf-line) !important;
    padding: 20px 0 !important;
  }
  body.sf-body .sf-choice-row > :first-child,
  body.sf-body .svp-decision__panel:first-child {
    border-top: 0 !important;
  }
  body.sf-body .sf-request-aside {
    padding: 0;
  }
  body.sf-body .ft2-find-form {
    flex-direction: column;
  }
  body.sf-body :is(.sf-heading, .ft-auto-hero) > .svp-hero__title {
    font-size: clamp(28px, 7.6vw, 36px) !important;
  }
}
@media (max-width: 600px) {
  body.sf-body .hdr-tools-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.sf-body .hdr-tcard {
    border-left: 0;
    border-top: 1px solid var(--sf-line);
    padding: 20px 0;
  }
  body.sf-body .hdr-tcard:first-child {
    border-top: 0;
  }
}

/* Keep the responsive page shells inside the viewport without changing widget logic. */
body.sf-body,
body.sf-body *,
body.sf-body *::before,
body.sf-body *::after {
  box-sizing: border-box;
}
body.sf-body
  :is(
    .ft-page-shell,
    .svp-shell,
    .ft2-find,
    .ft2-request-shell,
    .gw-page,
    .sf-page,
    :is(.sf-heading, .ft-auto-hero),
    .sf-choice-row,
    .sf-workbench-grid,
    .sf-request-grid
  ) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
body.sf-body .ft-platform-table {
  min-width: 720px;
}

body.sf-body .native-spectrum-page {
  grid-template-columns: minmax(0, 1fr);
}
body.sf-body :is(.sf-heading, .ft-auto-hero) > * {
  min-width: 0;
}
body.sf-body .native-spectrum-value-row {
  grid-column: 1 / -1;
}
body.sf-body
  :is(.sf-heading, .ft-auto-hero)
  :is(.svp-hero__eyebrow, .ft2-kicker) {
  display: block;
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
@media (max-width: 480px) {
  body.sf-body
    :is(
      .auth-card,
      .auth-card .field,
      .auth-card input:not([type="checkbox"]),
      .auth-card select
    ) {
    min-width: 0;
    max-width: 100%;
  }
  body.sf-body .auth-card .field {
    width: 100%;
  }
  body.sf-body .auth-card {
    padding-inline: 18px;
  }
  body.sf-body .ft-captcha-row {
    flex-wrap: wrap;
  }
  body.sf-body .ft-captcha-row input {
    flex: 1 1 100px;
    min-width: 0;
  }
}
