/* Consultation page layout for the Chengxuyuan prototype. */


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #14233f; font: 16px/1.55 'CXY Sans', 'Microsoft YaHei', sans-serif; background: #fff; }
body, h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
.cxy-ref-container { width: min(85%, 1440px); margin-inline: auto; }
.cxy-ref-option-header { background: #fff; }
.cxy-ref-option-header > .cxy-ref-container { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.cxy-ref-logo { flex: 0 0 auto; width: 132px; }
.cxy-ref-logo img { display: block; width: 100%; height: auto; }
.cxy-ref-option-header .cxy-ref-tips { padding: 6px 14px; border-radius: 18px; background: #f2f5fa; color: #52647a; font-size: 14px; }
.cxy-ref-option-header .cxy-ref-tips a, .cxy-ref-mtips a { color: #1558e9; }
.cxy-ref-home { margin-left: auto; }
.cxy-ref-home a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1558e9; color: white; transition: background 240ms ease, transform 240ms ease; }
.cxy-ref-home a:hover { background: #0847c8; transform: translateY(-2px); }
.cxy-ref-home svg { width: 20px; height: 20px; }
.cxy-ref-option { position: relative; padding-top: 46px; }
.cxy-ref-bg { position: absolute; inset: 0 0 auto; height: clamp(280px, 27vw, 480px); overflow: hidden; pointer-events: none; }
.cxy-ref-bg::before { content: ''; position: absolute; inset: -12%; background: radial-gradient(ellipse at 80% 0%, #9ddcff 0%, transparent 57%), radial-gradient(ellipse at 16% 2%, #c7f0ff 0%, transparent 57%), linear-gradient(#e5f4ff, #fff 88%); animation: cxy-inquiry-drift 16s ease-in-out infinite alternate; }
@keyframes cxy-inquiry-drift { from { transform: translateX(-1.5%) scale(1.02); } to { transform: translateX(1.5%) scale(1.05); } }
.cxy-ref-option > .cxy-ref-container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(32px, 4vw, 66px); align-items: start; }
.cxy-ref-mtips { display: none; }
.cxy-ref-left { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 32px; }
.cxy-ref-left > *, .cxy-ref-form { min-width: 0; }
.cxy-ref-box1, .cxy-ref-box2, .cxy-ref-form { border: 1px solid #eaf0f7; border-radius: 12px; background: rgba(255, 255, 255, .92); }
.cxy-ref-box1, .cxy-ref-box2 { padding: clamp(28px, 2.5vw, 40px); }
.cxy-ref-title { color: #1558e9; font-weight: 500; }
.cxy-ref-box1 > .cxy-ref-title, .cxy-ref-box2 > .cxy-ref-title { font-size: 20px; }
.cxy-ref-box1 > ul { display: grid; gap: 28px; margin-top: 34px; }
.cxy-ref-box1 li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.cxy-ref-box1 .cxy-ref-icon { position: relative; display: block; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: #1558e9; }
.cxy-ref-box1 .cxy-ref-icon::after { content: ''; position: absolute; width: 8px; height: 5px; left: 6px; top: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); }
.cxy-ref-box1 .cxy-ref-t1 { font-size: 18px; font-weight: 500; }
.cxy-ref-box1 .cxy-ref-t2 { margin-top: 5px; color: #52647a; font-size: 14px; line-height: 1.7; }
.cxy-ref-box2 .cxy-ref-list { min-width: 0; max-width: 100%; margin-top: 24px; padding-top: 24px; border-top: 1px solid #eaf0f7; }
.cxy-ref-marquee { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.cxy-ref-marquee::-webkit-scrollbar { display: none; }
.cxy-ref-marquee-track { display: flex; width: max-content; animation: cxy-inquiry-marquee 28s linear infinite; }
.cxy-ref-marquee-track ul { display: flex; flex: none; align-items: center; gap: 42px; padding-right: 42px; }
.cxy-ref-marquee-track li { display: grid; place-items: center; width: 112px; height: 52px; }
.cxy-ref-marquee-track img { max-width: 100%; max-height: 46px; object-fit: contain; }
.cxy-ref-marquee-track li.cxy-ref-zhongqing { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cxy-ref-marquee-track .cxy-ref-zhongqing img { width: 112px; height: 112px; max-width: none; max-height: none; }
@keyframes cxy-inquiry-marquee { to { transform: translateX(-50%); } }
.cxy-ref-marquee:focus-visible { outline: 2px solid #1687df; outline-offset: 4px; }
.cxy-ref-marquee:focus-within .cxy-ref-marquee-track { animation-play-state: paused; }
@media (hover: hover) { .cxy-ref-marquee:hover .cxy-ref-marquee-track { animation-play-state: paused; } }
.cxy-ref-form { padding: clamp(28px, 3vw, 46px); transition: border-color 250ms ease; }
.cxy-ref-form:hover { border-color: #b9d1f8; }
.cxy-ref-form form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cxy-ref-form form > * { grid-column: 1 / -1; }
.cxy-ref-form .cxy-ref-title { font-size: clamp(26px, 2vw, 32px); line-height: 1.25; }
.cxy-ref-form .cxy-ref-txts { margin-top: -14px; color: #52647a; font-size: 14px; }
.cxy-ref-form .cxy-ref-item1 { grid-column: 1; }
.cxy-ref-form .cxy-ref-item2 { grid-column: 2; }
.cxy-ref-item { min-width: 0; }
.cxy-ref-fieldset { margin: 0; padding: 0; border: 0; }
.cxy-ref-item > .cxy-ref-ts { display: block; margin-bottom: 8px; color: #263a56; font-size: 14px; }
.cxy-ref-ts i { margin-left: 4px; color: #1558e9; font-style: normal; }
.cxy-ref-item > input, .cxy-ref-item > select, .cxy-ref-item > textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #d5deea; border-radius: 5px; background: rgba(255, 255, 255, .9); color: #14233f; }
.cxy-ref-item > input::placeholder { color: #61738a; }
.cxy-ref-item > input:focus, .cxy-ref-item > select:focus { outline: 2px solid #b5d0ff; outline-offset: 1px; border-color: #1558e9; }
.cxy-ref-ck ul { display: flex; flex-wrap: wrap; gap: 11px 20px; }
.cxy-ref-ck li label, .cxy-ref-form .cxy-ref-tips { display: inline-flex; align-items: center; gap: 7px; position: relative; cursor: pointer; color: #52647a; font-size: 14px; }
.cxy-ref-ck input, .cxy-ref-form .cxy-ref-tips input { position: absolute; width: 16px; height: 16px; margin: 0; opacity: 0; }
.cxy-ref-ck i, .cxy-ref-form .cxy-ref-tips i { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border: 1px solid #a9bacf; border-radius: 3px; background: #fff; }
.cxy-ref-ck input:checked + i, .cxy-ref-form .cxy-ref-tips input:checked + i { border-color: #1558e9; background: #1558e9; }
.cxy-ref-ck input:checked + i::after, .cxy-ref-form .cxy-ref-tips input:checked + i::after { content: ''; width: 7px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.cxy-ref-ck input:focus-visible + i, .cxy-ref-form .cxy-ref-tips input:focus-visible + i { outline: 2px solid #1687df; outline-offset: 3px; }
.cxy-ref-btn { min-height: 46px; border: 0; border-radius: 5px; background: #1558e9; color: #fff; cursor: pointer; transition: background 240ms ease; }
.cxy-ref-btn:hover { background: #0847c8; }
.cxy-ref-btn:disabled { opacity: .6; cursor: not-allowed; }
.cxy-ref-form .cxy-ref-tips { margin-top: -6px; }
.cxy-ref-form .cxy-ref-tips a { color: #1558e9; }
.cxy-ref-preview, .cxy-ref-status { color: #52647a; font-size: 14px; }
.cxy-ref-status:not(:empty) { color: #1451bb; }
.cxy-ref-status:empty { display: none; }
.cxy-ref-contact.contact-screen { --header-height: 78px; --edge: clamp(36px, 5vw, 80px); font-family: 'CXY Sans', 'Microsoft YaHei', sans-serif; }
.cxy-ref-contact img { display: block; }
.overview-contact-bridge { position: relative; height: clamp(100px, 14vh, 150px); overflow: hidden; background: linear-gradient(90deg, #f2f7fd, #e6f2fe); }
.overview-contact-bridge svg { display: block; width: 100%; height: 100%; }
.overview-contact { scroll-margin-top: var(--header-height); }
.overview-contact .wechat-contact { scroll-margin-top: calc(var(--header-height) + 16px); }
.overview-contact .contact-hero-planes { background: linear-gradient(180deg, #084bd3, rgba(8,75,211,.75) 22%, rgba(8,75,211,0) 55%), url('assets/contact-background.svg') center / 100% 100% no-repeat; }
.overview-contact .contact-hero-content { opacity: var(--contact-reveal-alpha, 1); transform: translateY(var(--contact-reveal-shift, 0px)); }
.overview-contact .contact-hero-content:focus-within { opacity: 1; transform: none; }
@media (max-width: 1280px) { .cxy-ref-container { width: 90%; } }
@media (max-width: 991px) {
  .cxy-ref-option > .cxy-ref-container { grid-template-columns: minmax(0, 1fr); }
  .cxy-ref-form { grid-row: 1; }
  .cxy-ref-contact.contact-screen { --header-height: 72px; --edge: 24px; }
  .overview-contact-bridge { height: 90px; }
}
@media (max-width: 600px) {
  .cxy-ref-option-header > .cxy-ref-container { min-height: 64px; }
  .cxy-ref-option-header .cxy-ref-tips { display: none; }
  .cxy-ref-option { padding-top: 28px; }
  .cxy-ref-mtips { display: block; grid-row: 1; font-size: 14px; color: #52647a; }
  .cxy-ref-form { grid-row: 2; }
  .cxy-ref-form .cxy-ref-item1, .cxy-ref-form .cxy-ref-item2 { grid-column: 1 / -1; }
  .cxy-ref-left { gap: 20px; }
  .cxy-ref-box1, .cxy-ref-box2, .cxy-ref-form { padding: 24px; }
  .cxy-ref-box1 > ul { gap: 20px; margin-top: 25px; }
  .cxy-ref-ck li { flex: 1 1 43%; }
  .cxy-ref-contact.contact-screen { --edge: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cxy-ref-bg::before, .cxy-ref-marquee-track { animation: none; }
  .cxy-ref-marquee-duplicate { display: none !important; }
}
