/* ---------------------------------------------------------------------------
 * OjToken 发票中心（/invoice）页面样式
 *
 * 设计令牌与 /enterprise 页面完全一致（--ink / --brand / --brand-grad ...），
 * 组件级样式则直接复用站点自己的模块 CSS 类
 * （enterprise-page-module__B3_Ppa__primaryButton / contactForm / onboardingCard ...），
 * 因此按钮、表单、流程卡片的观感与官网其余页面一致。
 * ------------------------------------------------------------------------- */

.inv-page {
  --ink: #1e2136;
  --ink-2: #5b6178;
  --ink-3: #9096ad;
  --line: #e8e6f6;
  --line-2: #dcd9f0;
  --surface: #fff;
  --fill-2: #ecebfa;
  --brand: #6b4ef0;
  --brand-grad: linear-gradient(118deg, #2f74f5 0%, #5b53ee 48%, #9a6ff2 100%);
  --soon: #b1791a;
  --soon-bg: #fdf1da;
  --shadow: 0 12px 30px #5442a81a;
  max-width: 1248px;
  color: var(--ink);
  margin: 0 auto;
  padding: 28px 32px 72px;
}

.inv-page h1,
.inv-page h2,
.inv-page h3 {
  color: var(--ink);
  letter-spacing: 0;
}

/* 锚点跳转要避开吸顶页头 */
.inv-page [id] {
  scroll-margin-top: 96px;
}

/* 吸顶页头：站点是靠 JS 在滚动时给页头加毛玻璃背景的，这个静态页面自己实现一份，
   否则滚动时正文会直接从透明的页头下面穿过去。 */
header.is-scrolled {
  background-color: #fffffff0;
  border-bottom-color: #e8e6f6;
  box-shadow: 0 18px 40px -34px #1e2136b3;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* 页头的「资源 / 合作」在镜像里是 React 菜单，静态页面上用同款观感的下拉补上 */
header .inv-menu-host {
  position: relative;
  display: inline-flex;
}

header .inv-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  padding: 8px;
  border: 1px solid #e8e6f6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 26px 50px -26px #1e213659;
}

header .inv-menu.is-open {
  display: flex;
}

header .inv-menu a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #1e2136;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

header .inv-menu a:hover {
  background: #ecebfa;
  color: #6b4ef0;
}

/* 语言菜单：尺寸照抄官网运行时那份（130px、8px 内边距、圆角 14px） */
header .inv-menu--lang {
  top: calc(100% + 6px);
  min-width: 130px;
  padding: 8px;
  border-color: #dfe0ec;
  box-shadow: 0 20px 44px -22px #353b7047;
}

header .inv-menu__item {
  display: block;
  width: 100%;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #23232e;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

header .inv-menu__item:hover {
  background: #f2f1fb;
  color: #6b4ef0;
}

header .inv-menu__item.is-selected {
  background: #786ef024;
  color: #5b6cff;
}

/* --------------------------------------------------------------- 顶部 hero */

.inv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 22px 0 8px;
}

.inv-hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 840;
  line-height: 1.08;
}

.inv-hero-copy h1 em {
  font-style: normal;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.inv-hero-copy > p {
  max-width: 540px;
  color: var(--ink-2);
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.inv-hero-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.inv-hero-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
}

.inv-hero-list li > span {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2f74f5;
  color: #fff;
}

.inv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.inv-hero-actions .enterprise-page-module__B3_Ppa__primaryButton {
  margin-top: 0;
  text-decoration: none;
}

.inv-ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 26px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.inv-ghost-button:hover {
  border-color: #b9aef5;
  color: var(--brand);
  transform: translateY(-1px);
}

.inv-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
}

.inv-stat strong {
  display: block;
  font-family: var(--font-number, "D-DIN-PRO", Inter, sans-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.inv-stat span {
  display: block;
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

/* hero 右侧：样张视觉 */

.inv-hero-visual {
  position: relative;
  padding: 30px 34px 52px 26px;
}

.inv-hero-visual .enterprise-page-module__B3_Ppa__dotPattern {
  left: -6px;
  top: 4px;
  width: 92px;
  height: 138px;
}

.inv-hero-visual .enterprise-page-module__B3_Ppa__mediaBackplate {
  top: 56px;
  right: 18px;
  width: 72%;
}

.inv-sample-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 70px -34px #4632b473;
}

.inv-sample-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.inv-hero-visual .enterprise-page-module__B3_Ppa__editionBadge {
  bottom: 6px;
  left: -10px;
  padding: 18px 24px;
}

.inv-hero-visual .enterprise-page-module__B3_Ppa__editionBadge span {
  font-size: 27px;
}

/* ------------------------------------------------------------- 通用区块头 */

.inv-section {
  padding-top: 84px;
}

.inv-section h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 840;
  line-height: 1.18;
}

.inv-section .inv-lead {
  max-width: 720px;
  color: var(--ink-2);
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

/* ------------------------------------------------------------- 开票 4 步 */

.inv-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.inv-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 24px 26px;
  box-shadow: 0 4px 16px #5442a812;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.inv-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -22px #5442a859;
}

.inv-step-num {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-grad);
  color: #fff;
  font-family: var(--font-number, "D-DIN-PRO", Inter, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.inv-step h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.inv-step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.inv-step-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 13.5px;
}

.inv-step-foot a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.inv-step-foot a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------- 发票类型 / 样张 / 明细 */

.inv-types-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 26px;
  margin-top: 26px;
  align-items: stretch;
}

.inv-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px 32px 34px;
  box-shadow: var(--shadow);
}

.inv-card h2,
.inv-card h3 {
  margin: 0;
  font-size: 23px;
  font-weight: 840;
  line-height: 1.25;
}

.inv-card h2 + p,
.inv-card h3 + p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.inv-check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.inv-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.inv-check-list li > span {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #2f74f5;
  color: #fff;
}

.inv-check-list li small {
  display: block;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.inv-card-foot {
  margin-top: auto;
  padding-top: 26px;
}

.inv-card-foot .enterprise-page-module__B3_Ppa__primaryButton {
  margin-top: 0;
  text-decoration: none;
}

.inv-sample-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.inv-sample-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: zoom-in;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.inv-sample-button:hover {
  border-color: #b9aef5;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -20px #5442a873;
}

.inv-sample-button img {
  display: block;
  width: 100%;
  height: auto;
}

.inv-sample-button > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1e2136d9;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.inv-sample-hint {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

/* --------------------------------------------------------- 平台能力双面板 */

.inv-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 26px;
}

.inv-panels .enterprise-page-module__B3_Ppa__resourcePanel,
.inv-panels .enterprise-page-module__B3_Ppa__managementPanel {
  padding: 32px;
}

.inv-panels .enterprise-page-module__B3_Ppa__featureRow small {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.5;
}

.inv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.inv-chip {
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
}

.inv-tip {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--soon-bg);
  color: #7a5510;
  font-size: 13.5px;
  line-height: 1.7;
}

.inv-tip strong {
  font-weight: 800;
}

/* ------------------------------------------------------------ 开票申请表 */

.inv-apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 44px;
  align-items: start;
  margin-top: 26px;
}

.inv-apply-left h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 840;
  line-height: 1.1;
}

.inv-apply-left > p {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.inv-form {
  margin-top: 22px;
}

.inv-form .inv-field {
  display: block;
  margin-top: 14px;
}

.inv-form .inv-field:first-of-type {
  margin-top: 0;
}

.inv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.inv-form .enterprise-page-module__B3_Ppa__primaryButton {
  width: 100%;
  margin-top: 22px;
}

.inv-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--fill-2);
}

.inv-seg label {
  position: relative;
  margin: 0;
  padding: 8px 20px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.inv-seg label:has(input:checked) {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 4px 12px #5442a81f;
}

.inv-seg input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 表单样式来自站点的 contactForm 模块类，这里提高选择器权重覆盖其中的
   `label span` 规则，避免分栏控件与错误提示继承“字段标题”样式。 */
.inv-form .inv-seg label {
  display: inline-block;
  margin: 0;
}

.inv-form .inv-seg label > span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
}

.inv-form .inv-field .inv-field-error {
  display: none;
  margin-top: 6px;
  color: #cf4d4d;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
}

/* 单选组不是 <label>，这里补上与其它字段一致的字段标题样式 */
.inv-form .inv-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.inv-field.is-invalid input,
.inv-field.is-invalid textarea {
  border-color: #e08b8b;
  box-shadow: 0 0 0 3px #cf4d4d14;
}

.inv-form .inv-field.is-invalid .inv-field-error {
  display: block;
}

.inv-form-note {
  margin: 14px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.7;
}

.inv-result {
  display: none;
  margin-top: 22px;
  padding: 28px 30px;
  border: 1px solid #cdeadd;
  border-radius: 20px;
  background: #f2fcf8;
}

.inv-result.is-visible {
  display: block;
}

.inv-result h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 840;
}

.inv-result dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 16px 0 0;
  font-size: 13.5px;
}

.inv-result dt {
  color: var(--ink-3);
}

.inv-result dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.inv-result p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.inv-result button {
  margin-top: 18px;
  padding: 10px 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

/* 右侧：进度卡 + 商务咨询卡 */

.inv-apply-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 96px;
}

.inv-apply-right .enterprise-page-module__B3_Ppa__onboardingSteps {
  margin-top: 34px;
}

.inv-contact-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.inv-qr {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: #fff;
}

.inv-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.inv-contact-card h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 840;
}

.inv-contact-card p {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.inv-contact-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.inv-contact-lines li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
}

.inv-contact-lines a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.inv-contact-lines a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ FAQ */

.inv-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

.inv-faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px #5442a80d;
  overflow: hidden;
}

.inv-faq-item > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.inv-faq-item > button svg {
  flex: none;
  transition: transform 0.2s ease;
}

.inv-faq-item.is-open > button svg {
  transform: rotate(180deg);
}

.inv-faq-body {
  display: none;
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.inv-faq-item.is-open .inv-faq-body {
  display: block;
}

/* -------------------------------------------------------------- 图片放大 */

.inv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 32px;
  background: #12101fbd;
  backdrop-filter: blur(6px);
}

.inv-lightbox.is-open {
  display: grid;
}

.inv-lightbox img {
  max-width: min(94vw, 1080px);
  max-height: 88vh;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 40px 90px -30px #000000a6;
}

.inv-lightbox-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff33;
  border-radius: 50%;
  background: #ffffff1a;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.inv-lightbox-close:hover {
  background: #ffffff2e;
}

/* ------------------------------------------------------- 移动端补充导航 */

.inv-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.inv-mobile-nav.is-open {
  display: flex;
}

.inv-mobile-nav a {
  padding: 11px 6px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.inv-mobile-nav a:hover {
  background: var(--fill-2);
  color: var(--brand);
}

/* -------------------------------------------------------------- 响应式 */

@media (max-width: 1080px) {
  .inv-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .inv-page {
    padding: 20px 18px 56px;
  }

  .inv-hero,
  .inv-types-grid,
  .inv-panels,
  .inv-apply-grid {
    grid-template-columns: 1fr;
  }

  .inv-hero {
    gap: 34px;
  }

  .inv-hero-visual {
    order: -1;
    padding: 24px 18px 46px 10px;
  }

  .inv-section {
    padding-top: 62px;
  }

  .inv-apply-right {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .inv-steps {
    grid-template-columns: 1fr;
  }

  .inv-row {
    grid-template-columns: 1fr;
  }

  .inv-card,
  .inv-form,
  .inv-contact-card {
    padding: 22px 20px 24px;
  }

  .inv-hero-stats {
    gap: 22px;
  }

  .inv-contact-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .inv-seg {
    width: 100%;
  }

  .inv-seg label {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inv-step,
  .inv-sample-button,
  .inv-ghost-button,
  .inv-faq-item > button svg {
    transition: none;
  }
}
