:root {
  --brand-50: #EAF6EE;
  --brand-100: #D6F0DE;
  --brand-200: #B6E4C4;
  --brand-300: #7FD09A;
  --brand-400: #4DBE74;
  --brand-500: #2EAE5C;
  --brand-600: #16934A;
  --brand-700: #0F7A3C;
  --brand-800: #0C5C2F;
  --brand-900: #073A1F;
  --ink-900: #0E1A14;
  --ink-800: #1A2A21;
  --ink-700: #2A3A31;
  --ink-600: #4B5A52;
  --ink-500: #6F7B74;
  --ink-400: #9AA29D;
  --ink-300: #C5CAC7;
  --ink-200: #E3E6E4;
  --ink-100: #F2F4F3;
  --ink-50: #F8FAF9;
  --font-cn: "Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  --font-en: "DM Sans","Noto Sans SC",sans-serif;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}
body {
  font-family: var(--font-cn);
  color: var(--ink-900);
  background: #EFF4F0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  display: grid;
  place-items: center;
  padding: 24px;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
a {
  text-decoration: none;
  color: inherit;
}
/* ============ Modal shell ============ */
.modal-backdrop {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  width: 100%;
  max-width: 1120px;
  background: #fff;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 24px 60px -16px rgba(7,58,31,.14), 0 8px 24px -8px rgba(7,58,31,.06), 0 0 0 1px rgba(7,58,31,.04);
  overflow: visible;
  display: grid;
  grid-template-columns: 360px 1fr;
  padding: 24px;
  gap: 16px;
}
/* ============ Left info pane (green gradient) ============ */
.modal-info {
  background: linear-gradient(180deg, #2EAE5C 0%, #7FD09A 30%, #D6F0DE 65%, #FFFFFF 100%);
  border-radius: 12px;
  border: 1px solid rgba(22, 147, 74, .18);
  box-shadow: 0 4px 14px -6px rgba(7, 58, 31, .12), inset 0 1px 0 rgba(255, 255, 255, .35);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
}
.modal-info-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(7,58,31,.18);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.modal-info-desc {
  font-size: 13px;
  color: rgba(255,255,255,.92);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}
/* Square QR card */
.modal-qrcode {
  width: 168px;
  height: 168px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 10px 24px -10px rgba(7,58,31,.18), 0 0 0 1px rgba(7,58,31,.04);
  align-self: center;
  margin-top: 16px;
}
.modal-qrcode-inner {
  width: 100%;
  height: 100%;
  background-image: url('../img/547517690a1f0cb1.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 6px;
}
/* push hours + email to the bottom */
.modal-info-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: 20px;
  text-align: left;
}
.modal-hours {
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 50, 28, .18);
  text-align: left;
}
.modal-hours-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.modal-hours-value {
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.6;
}
.modal-service {
  width: 100%;
  margin-top: 14px;
}
.modal-service-label {
  font-size: 12px;
  color: var(--ink-700);
  margin-bottom: 4px;
  line-height: 1.5;
}
.modal-service-phone {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  font-family: var(--font-en);
  letter-spacing: .2px;
  word-break: break-all;
}
/* ============ Right form pane ============ */
.modal-form-pane {
  background: #fff;
  padding: 22px 28px 20px 24px;
  overflow-y: auto;
  max-height: calc(100vh - 96px);
}
.modal-form-pane::-webkit-scrollbar {
  width: 6px;
}
.modal-form-pane::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 3px;
}
.modal-form-pane::-webkit-scrollbar-track {
  background: transparent;
}
.modal-form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  letter-spacing: -.2px;
}
.modal-form-desc {
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: 16px;
}
/* ============ Whitepaper intro card ============ */
.wp-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: linear-gradient(180deg, #FAFCFA 0%, #FFFFFF 100%);
  margin-bottom: 18px;
}
.wp-cover {
  width: 96px;
  height: 136px;
  border-radius: 6px;
  background-image: url('../img/6ccfd7614e4d43fd.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(7, 58, 31, .08);
  box-shadow: 0 6px 14px -6px rgba(7,58,31,.18), inset 0 1px 0 rgba(255,255,255,.5);
  flex-shrink: 0;
}
.wp-meta {
  min-width: 0;
}
.wp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.4;
  margin-bottom: 4px;
}
.wp-subtitle {
  font-size: 12.5px;
  color: var(--ink-600);
  margin-bottom: 8px;
  line-height: 1.5;
}
.wp-desc {
  font-size: 12px;
  color: var(--ink-600);
  line-height: 1.7;
}
/* ============ Form ============ */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-row.full {
  grid-column: 1 / -1;
}
.form-row label {
  font-size: 13px;
  color: var(--ink-900);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-row label .required {
  color: #E53935;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  margin-left: 2px;
}
.form-row input, .form-row textarea {
  padding: 8px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out);
  background: #fff;
  color: var(--ink-900);
  width: 100%;
}
.form-row input::placeholder, .form-row textarea::placeholder {
  color: var(--ink-400);
}
.form-row input:hover, .form-row textarea:hover {
  border-color: rgba(22, 147, 74, .35);
}
.form-row input:focus, .form-row textarea:focus {
  border-color: rgba(22, 147, 74, .55);
  box-shadow: 0 0 0 3px rgba(22, 147, 74, .08);
}
/* 错误提示：常驻占位，不改变弹窗高度（仅切换可见性） */
.form-row .field-error {
  font-size: 11.5px;
  color: #e5484d;
  line-height: 1.25;
  min-height: 15px;
  margin-top: -1px;
  opacity: 0;
  transition: opacity .18s var(--ease-out);
}
.form-row.has-error .field-error {
  opacity: 1;
}
.form-row.has-error input {
  border-color: #e5484d;
}
.form-row.has-error input:focus {
  box-shadow: 0 0 0 3px rgba(229,72,77,.10);
}
/* Custom dropdown */
.form-dropdown {
  position: relative;
}
.form-dropdown-trigger {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: var(--ink-400);
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
  position: relative;
  font-family: inherit;
}
.form-dropdown-trigger.has-value {
  color: var(--ink-900);
}
.form-dropdown-trigger::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-500);
  border-bottom: 1.5px solid var(--ink-500);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.form-dropdown.open .form-dropdown-trigger {
  border-color: rgba(22, 147, 74, .55);
  box-shadow: 0 0 0 3px rgba(22, 147, 74, .08);
}
.form-dropdown.open .form-dropdown-trigger::after {
  transform: translateY(-30%) rotate(-135deg);
}
.form-dropdown:hover .form-dropdown-trigger {
  border-color: rgba(22, 147, 74, .35);
}
.form-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(7, 58, 31, .08);
  border-radius: 10px;
  box-shadow: 0 16px 40px -8px rgba(7,58,31,.16), 0 6px 16px -8px rgba(7,58,31,.10);
  padding: 6px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
}
.form-dropdown.open .form-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.form-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.form-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--ink-200);
  border-radius: 3px;
}
.form-dropdown-option {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-800);
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.form-dropdown-option:hover {
  background: rgba(22, 147, 74, .06);
  color: var(--brand-700);
}
.form-dropdown-option.selected {
  background: rgba(22, 147, 74, .10);
  color: var(--brand-700);
  font-weight: 500;
}
/* Privacy agreement */
.modal-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 6px 0 10px;
  font-size: 12.5px;
  color: var(--ink-700);
}
.modal-agree input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  max-width: 10px;
  max-height: 10px;
  border: 1px solid var(--ink-300);
  border-radius: 2px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.modal-agree input:checked {
  background: rgba(22, 147, 74, .85);
  border-color: rgba(22, 147, 74, .85);
}
.modal-agree input:checked::after {
  content: '';
  position: absolute;
  left: 2px;
  top: -1px;
  width: 2.5px;
  height: 6px;
  border-right: 1.2px solid #fff;
  border-bottom: 1.2px solid #fff;
  transform: rotate(45deg);
}
.modal-agree a {
  color: var(--ink-900);
}
/* Submit button */
.modal-submit {
  width: 100%;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: var(--ink-200);
  color: var(--ink-500);
  cursor: not-allowed;
  transition: all .3s var(--ease-out);
  letter-spacing: 4px;
  font-family: inherit;
}
.modal-submit.active {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(22, 147, 74, .45);
}
.modal-submit.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(22, 147, 74, .55);
}
.modal-submit.active:active {
  transform: translateY(0);
}
/* Modal close — 与边角相交（悬于右上角） */
.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px -4px rgba(7,58,31,.28), 0 0 0 1px rgba(7,58,31,.06);
  display: grid;
  place-items: center;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .3s var(--ease-out);
  z-index: 20;
}
.modal-close:hover {
  background: var(--brand-600);
  color: #fff;
  transform: rotate(90deg);
  box-shadow: 0 8px 22px -4px rgba(22,147,74,.45);
}
.modal-close:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
}
/* Toast */
.ds-toast {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #fff;
  color: var(--ink-900);
  padding: 14px 22px 14px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  box-shadow: 0 16px 40px -10px rgba(7,58,31,.20), 0 0 0 1px rgba(22, 147, 74, .14);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-spring);
}
.ds-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ds-toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(22, 147, 74, .92);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
/* Responsive */
@media (max-width: 960px) {
  .modal {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .modal-info {
    display: none;
  }
  .modal-form-pane {
    padding: 28px 28px 24px;
  }
  .modal-form .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wp-card {
    grid-template-columns: 80px 1fr;
  }
  .wp-cover {
    width: 80px;
    height: 104px;
  }
}
@media (max-width: 520px) {
  .modal-form-pane {
    padding: 24px 20px 22px;
  }
  .wp-card {
    grid-template-columns: 1fr;
  }
  .wp-cover {
    width: 80px;
    height: 104px;
    margin: 0 auto;
  }
}
/* yc-modal-transparent-v1 — make outer body transparent so only .modal rounded card shows */
html, body {
  background: transparent !important;
}
.modal-backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}
/* yc-hide-scroll-v1 — invisible scrollbars (keep scroll functional) */
html, body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.modal-form-pane {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-form-pane::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}
/* === 长文本两端对齐规范（全站统一） === */
.bg-text p,.article-body p,.article-body,.about-text p,.cap-desc,.hero-desc,.challenge-card p,.value-card p,.value-desc,.arch-col-foot,.scenario-desc,.sol-text p,.intro-text p,.wp-desc,.mega-prod-desc {
  text-align:justify;
  text-justify:inter-ideograph
}
/* 正文段落两端对齐 */
p {
  text-align:justify;
  text-justify:inter-ideograph
}
.about-text,.about-text p,.about-text div {
  text-align:justify;
  text-justify:inter-ideograph
}
/* 保留刻意居中模块内的文本（含圆圈流程步骤等） */
.section-head p,.delivery-step p,.step p,.end-wrap p,.aurora-outro p,.outro-inner p, .modal-info p,.modal-info-bottom p,.modal-hours p,.article-footer p,.news-back p, .qr-block p,.af-qr-pop p,.founder-card p {
  text-align:center
}
.af-brand p,.footer-brand p,.af-brand,.footer-brand {
  text-align:left
}
#modalWechat .modal.modal-mini {
  overflow:visible
}
#modalWechat .modal-close {
  top:-14px;
  right:-14px;
  background:#fff;
  box-shadow:0 4px 14px -2px rgba(7,58,31,.22)
}
/* 跨页面丝滑跳转: 支持的浏览器自动淡入淡出, 旧浏览器无影响; 尊重减少动态偏好 */
@view-transition {
  navigation:auto;
}
::view-transition-old(root) {
  animation:yc-vt-out .26s cubic-bezier(.4,0,.2,1) both;
}
::view-transition-new(root) {
  animation:yc-vt-in .34s cubic-bezier(.22,1,.36,1) both;
}
@keyframes yc-vt-out {
  to {
    opacity:0;
    transform:translateY(-6px);
  }
}
@keyframes yc-vt-in {
  from {
    opacity:0;
    transform:translateY(8px);
  }
}
@media (prefers-reduced-motion:reduce) {
  @view-transition {
    navigation:none;
  }
}
.aurora-outro .aurora-cta h2 span + span {
  font-size:clamp(13px,1.35vw,16px) !important;
  font-weight:500 !important;
  letter-spacing:.3px !important;
  opacity:.92 !important;
  margin-top:10px !important;
}
/* ════════════════════════════════════════════════════════════
   YoungsData 官网视觉标准 · 首页系（--ink-* / --brand-* 令牌）
   规范见 _internal/design/README.md
   仅含：配色令牌 + 菜单字号 + 页尾水印。本组页面无暗色模式，故不含暗色规则。
   ════════════════════════════════════════════════════════════ */
:root {
  /* 墨色阶：偏绿 → 偏蓝紫冷墨（与终端绿系同源） */
  --ink-900:#12131A;
  --ink-800:#191A23;
  --ink-700:#2C2E3A;
  --ink-600:#4A4C5C;
  --ink-500:#6B6D7E;
  --ink-400:#858699;
  --ink-300:#B9BBC8;
  --ink-200:#D2D3E0;
  --ink-100:#E8E9F0;
  --ink-50:#F8F9FA;
  /* 阴影同步转冷（原为 rgba(7,58,31) 绿调） */
  --shadow-sm:0 1px 2px rgba(25,26,35,.04), 0 1px 1px rgba(25,26,35,.03);
  --shadow-md:0 6px 24px -8px rgba(25,26,35,.07), 0 2px 6px rgba(25,26,35,.04);
  --shadow-lg:0 24px 48px -16px rgba(25,26,35,.11), 0 8px 16px -8px rgba(25,26,35,.06);
  --shadow-xl:0 40px 80px -20px rgba(25,26,35,.16), 0 12px 30px -10px rgba(25,26,35,.10);
}
/* 导航字号：与终端绿系统一档位 */
.nav-links a, .ycm-nav a, .site-header nav a {
  font-size:13px !important;
  line-height:1.5 !important;
}
/* 页尾品牌水印 */
body {
  position:relative;
}
body::after {
  content:"YOUNGSDATA";
  position:absolute;
  right:2vw;
  bottom:128px;
  z-index:0;
  font-family:var(--font-mono,ui-monospace,monospace);
  font-weight:800;
  font-size:clamp(72px,9.2vw,160px);
  line-height:.9;
  letter-spacing:-.02em;
  color:#EBEEF1;
  transform:rotate(-6deg) skewX(-9deg);
  transform-origin:100% 100%;
  pointer-events:none;
  user-select:none;
  white-space:nowrap;
}
