body.cvp-preview-frame #navbar-top.sticky-top {
  top: var(--cv-preview-bar-h, 0px);
}
.cvc-portrait {
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: cover;
}
.cvc-portrait-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #2a2a2a;
  color: #fff;
  font-size: 72px;
  font-weight: 750;
}
.cvc-socials button {
  border: 0;
  background: transparent;
}
.cvc-socials img,
.cvc-socials svg {
  width: 16px;
  height: 16px;
}
#portfolio {
  scroll-margin-top: 84px;
}
#portfolio .portfolio-items > .item {
  display: flex;
}
#portfolio .cvc-project {
  display: flex;
  width: 100%;
  margin: 0 0 28px;
}
#portfolio .cvc-project-link {
  display: flex;
  width: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
#portfolio .cvc-project-media {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 1rem;
  background: #e7e1d6;
}
#portfolio .cvc-project-media img,
#portfolio .cvc-work-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#portfolio .cvc-work-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #171717;
  font-weight: 750;
  text-align: center;
}
#portfolio .cvc-project figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  text-align: left;
}
#portfolio .cvc-project small {
  min-height: 1.25em;
  color: rgba(0, 0, 0, .5);
  font-size: 13px;
}
#portfolio .cvc-project h4 {
  margin: 2px 0 6px;
  color: #171717;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.35;
}
#portfolio .cvc-project p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.5em;
  margin: 0;
  color: #6c757d;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.cvc-case-cover {
  margin-top: -36px;
}
.cvc-prose img {
  max-width: 100%;
  height: auto;
}
.cvc-prose .cv-video {
  position: relative;
  width: 100%;
  margin: 24px 0;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
}
.cvc-prose .cv-video iframe,
.cvc-prose .cv-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cvc-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#cvInquiryStatus.is-success { color: #198754; }
#cvInquiryStatus.is-error { color: #dc3545; }
.animate__delay-0\.1s {
  animation-delay: .1s;
}
.cvc-certs {
  width: 100%;
}
.cvc-cert {
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e7e1d6;
}
.cvc-cert:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.cvc-cert p,
.cvc-cert h5 {
  margin-left: 0;
}
.cvc-contact-side {
  font-style: normal;
  line-height: 1.55;
  color: #171717;
}
.cvc-contact-side strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
.cvc-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}
.cvc-contact-ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  object-fit: contain;
}
.cvc-inquiry-form .cv-inquiry-field { margin-bottom: 16px; }
.cvc-inquiry-form .cv-inquiry-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 650;
}
.cvc-inquiry-form .cv-inquiry-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #d9d3c7;
  border-radius: 10px;
  background: #fff;
  color: #171717;
  font: inherit;
  font-size: 16px;
}
.cvc-inquiry-form textarea.cv-inquiry-input { min-height: 120px; resize: vertical; }
.cvc-inquiry-form .cv-inquiry-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.cvc-inquiry-form .cv-inquiry-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 400;
}
.cvc-inquiry-form .cv-inquiry-option input {
  width: auto;
  height: auto;
  margin: 0;
}
.cvc-contact-line a,
.cvc-contact-value {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #ff0008;
  font: inherit;
  line-height: 1.45;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

/* 项目横滑：固定卡片宽度，超出可左右切换 */
#portfolio .cvc-project-head {
  position: relative;
  display: block;
  margin-bottom: 20px;
  text-align: center;
}
#portfolio .cvc-project-nav {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  flex: none;
}
@media (max-width: 767px) {
  #portfolio .cvc-project-nav {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 12px;
  }
}
#portfolio .cvc-rail-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 999px;
  background: #fff;
  color: #222;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#portfolio .cvc-rail-btn:disabled { opacity: .35; cursor: default; }
#portfolio .cvc-project-rail {
  --cvc-rail-pad: max(16px, calc((100vw - 1140px) / 2));
  overflow: hidden;
}
#portfolio .cvc-project-track {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--cvc-rail-pad);
  padding: 4px var(--cvc-rail-pad) 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#portfolio .cvc-project-track.is-centered {
  justify-content: center;
  scroll-snap-type: none;
}
#portfolio .cvc-project-track::-webkit-scrollbar { display: none; }
#portfolio .cvc-project-card {
  flex: 0 0 min(320px, 78vw);
  width: min(320px, 78vw);
  max-width: 320px;
  margin: 0;
  scroll-snap-align: start;
}
@media (max-width: 767px) {
  #portfolio .cvc-project-rail { --cvc-rail-pad: 16px; }
}

/* Long names must wrap inside the available viewport. */
h1, h2, .navbar-brand { overflow-wrap: anywhere; }
