feat: release news and store experience updates
@@ -416,7 +416,9 @@ img {
|
||||
/* ---- Trust Strip ---- */
|
||||
.trust-strip {
|
||||
color: var(--b2b-surface);
|
||||
background: var(--b2b-ink);
|
||||
background:
|
||||
linear-gradient(90deg, rgba(20, 20, 18, 0.9), rgba(20, 20, 18, 0.76)),
|
||||
url("../images/trust-workshop-bg.jpg") 62% 55% / cover no-repeat;
|
||||
}
|
||||
|
||||
.trust-metric {
|
||||
@@ -460,6 +462,10 @@ img {
|
||||
background: var(--b2b-line);
|
||||
}
|
||||
|
||||
.capability-grid-archive {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.capability-card {
|
||||
display: grid;
|
||||
min-width: 0;
|
||||
@@ -474,7 +480,14 @@ img {
|
||||
background: var(--b2b-mist);
|
||||
}
|
||||
|
||||
.capability-image a {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.capability-image img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
@@ -536,6 +549,139 @@ img {
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
/* ---- Homepage Carousels ---- */
|
||||
.b2b-carousel {
|
||||
--carousel-gap: 1px;
|
||||
--carousel-items: 1;
|
||||
}
|
||||
|
||||
.services-carousel {
|
||||
--carousel-items: 2;
|
||||
}
|
||||
|
||||
.cases-carousel {
|
||||
--carousel-items: 2;
|
||||
}
|
||||
|
||||
.b2b-carousel-viewport {
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
overscroll-behavior-x: contain;
|
||||
scroll-snap-type: x mandatory;
|
||||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
.b2b-carousel-viewport::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.b2b-carousel .b2b-carousel-track {
|
||||
display: grid;
|
||||
width: auto;
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: 100%;
|
||||
grid-template-columns: none;
|
||||
gap: var(--carousel-gap);
|
||||
}
|
||||
|
||||
.services-carousel .b2b-carousel-track {
|
||||
grid-auto-columns: calc(50% - 0.5px);
|
||||
}
|
||||
|
||||
.cases-carousel .b2b-carousel-track {
|
||||
grid-auto-columns: calc(50% - 0.5px);
|
||||
}
|
||||
|
||||
.b2b-carousel-slide {
|
||||
min-width: 0;
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.b2b-carousel-controls {
|
||||
display: none;
|
||||
min-height: 44px;
|
||||
margin-top: 1.5rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.b2b-carousel.is-ready .b2b-carousel-controls {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.b2b-carousel.is-ready.has-single-page .b2b-carousel-controls {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.b2b-carousel-arrow,
|
||||
.b2b-carousel-dot {
|
||||
appearance: none;
|
||||
color: var(--b2b-ink);
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.b2b-carousel-arrow {
|
||||
display: inline-flex;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
padding: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--b2b-line);
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
transition:
|
||||
color 180ms ease,
|
||||
background-color 180ms ease,
|
||||
border-color 180ms ease,
|
||||
transform 180ms ease;
|
||||
}
|
||||
|
||||
.b2b-carousel-arrow:hover {
|
||||
color: var(--b2b-surface);
|
||||
background: var(--b2b-ink);
|
||||
border-color: var(--b2b-ink);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.b2b-carousel-arrow:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.b2b-carousel-arrow:focus-visible,
|
||||
.b2b-carousel-dot:focus-visible {
|
||||
outline: 2px solid var(--b2b-ink);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.b2b-carousel-dots {
|
||||
display: flex;
|
||||
min-width: 64px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.6rem;
|
||||
}
|
||||
|
||||
.b2b-carousel-dot {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
padding: 0;
|
||||
background: var(--b2b-line);
|
||||
transition:
|
||||
width 220ms ease,
|
||||
background-color 220ms ease;
|
||||
}
|
||||
|
||||
.b2b-carousel-dot.is-active {
|
||||
width: 24px;
|
||||
background: var(--b2b-ink);
|
||||
}
|
||||
|
||||
/* ---- Case Grid ---- */
|
||||
.cases-section {
|
||||
background: var(--b2b-mist);
|
||||
@@ -548,6 +694,10 @@ img {
|
||||
background: var(--b2b-line);
|
||||
}
|
||||
|
||||
.case-grid-archive {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.case-card {
|
||||
position: relative;
|
||||
display: block;
|
||||
@@ -600,7 +750,9 @@ img {
|
||||
|
||||
/* ---- CTA Section ---- */
|
||||
.cta-section {
|
||||
background: var(--b2b-ink);
|
||||
background:
|
||||
linear-gradient(90deg, rgba(20, 20, 18, 0.88), rgba(20, 20, 18, 0.7)),
|
||||
url("../images/consultation-studio-bg.jpg") center 58% / cover no-repeat;
|
||||
color: var(--b2b-surface);
|
||||
text-align: center;
|
||||
padding: 5rem 0;
|
||||
@@ -881,7 +1033,9 @@ img {
|
||||
/* ---- Documents Section ---- */
|
||||
.documents-section {
|
||||
color: rgba(250, 250, 248, 0.65);
|
||||
background: var(--b2b-ink);
|
||||
background:
|
||||
linear-gradient(90deg, rgba(20, 20, 18, 0.95), rgba(20, 20, 18, 0.86)),
|
||||
url("../images/trust-workshop-bg.jpg") center 55% / cover no-repeat;
|
||||
}
|
||||
|
||||
.documents-section h2,
|
||||
@@ -902,7 +1056,7 @@ img {
|
||||
min-width: 0;
|
||||
padding: 1.75rem;
|
||||
gap: 1rem;
|
||||
background: var(--b2b-ink);
|
||||
background: rgba(28, 28, 26, 0.88);
|
||||
}
|
||||
|
||||
.document-grid article > span {
|
||||
@@ -969,10 +1123,21 @@ img {
|
||||
}
|
||||
|
||||
.footer-bottom {
|
||||
align-items: center;
|
||||
border-color: rgba(250, 250, 248, 0.08) !important;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.footer-icp {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer-icp a {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(250, 250, 248, 0.22);
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
/* ---- WordPress Content Area ---- */
|
||||
.fragrance-content-area {
|
||||
min-height: 65vh;
|
||||
@@ -1101,14 +1266,35 @@ textarea:focus-visible {
|
||||
/* ---- About Page CTA ---- */
|
||||
.about-cta {
|
||||
padding: 5rem 0;
|
||||
background: var(--b2b-mist);
|
||||
color: var(--b2b-surface);
|
||||
background:
|
||||
linear-gradient(90deg, rgba(20, 20, 18, 0.88), rgba(20, 20, 18, 0.7)),
|
||||
url("../images/consultation-studio-bg.jpg") center 58% / cover no-repeat;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.about-cta h2 {
|
||||
color: var(--b2b-surface);
|
||||
font-size: clamp(1.8rem, 3vw, 2.4rem);
|
||||
}
|
||||
|
||||
.about-cta .section-lead {
|
||||
color: rgba(250, 250, 248, 0.74);
|
||||
}
|
||||
|
||||
.about-cta .btn-b2b-primary {
|
||||
color: var(--b2b-ink);
|
||||
background: var(--b2b-surface);
|
||||
border-color: var(--b2b-surface);
|
||||
}
|
||||
|
||||
.about-cta .btn-b2b-primary:hover,
|
||||
.about-cta .btn-b2b-primary:focus {
|
||||
color: var(--b2b-ink);
|
||||
background: var(--b2b-mist);
|
||||
border-color: var(--b2b-mist);
|
||||
}
|
||||
|
||||
/* ---- Contact Page ---- */
|
||||
.contact-section {
|
||||
padding-top: 0;
|
||||
@@ -1289,6 +1475,319 @@ textarea:focus-visible {
|
||||
color: var(--b2b-ink-soft);
|
||||
}
|
||||
|
||||
/* ---- News ---- */
|
||||
.news-page {
|
||||
padding-bottom: clamp(5rem, 8vw, 8rem);
|
||||
}
|
||||
|
||||
.news-page-header {
|
||||
max-width: 760px;
|
||||
padding: 1.5rem 0 clamp(3rem, 6vw, 5rem);
|
||||
}
|
||||
|
||||
.news-page-header h1 {
|
||||
margin-bottom: 1.25rem;
|
||||
font-family: var(--b2b-font-display);
|
||||
font-size: clamp(2.7rem, 5vw, 4.8rem);
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
.news-page-header > p:last-child,
|
||||
.news-page-header .archive-description {
|
||||
color: var(--b2b-ink-soft);
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.news-page-header .archive-description > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.news-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: clamp(1.25rem, 2.5vw, 2rem);
|
||||
}
|
||||
|
||||
.news-card {
|
||||
display: flex;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
background: var(--b2b-surface);
|
||||
border: 1px solid var(--b2b-line);
|
||||
flex-direction: column;
|
||||
transition:
|
||||
border-color 180ms ease,
|
||||
transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
||||
}
|
||||
|
||||
.news-card:hover {
|
||||
border-color: var(--b2b-ink-muted);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.news-card-media {
|
||||
display: block;
|
||||
aspect-ratio: 16 / 9;
|
||||
overflow: hidden;
|
||||
background: var(--b2b-mist);
|
||||
}
|
||||
|
||||
.news-card-media img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
|
||||
}
|
||||
|
||||
.news-card:hover .news-card-media img {
|
||||
transform: scale(1.025);
|
||||
}
|
||||
|
||||
.news-card-body {
|
||||
display: flex;
|
||||
padding: clamp(1.35rem, 2.5vw, 2rem);
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.news-meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem 1rem;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--b2b-ink-muted);
|
||||
font-size: 0.74rem;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
|
||||
.news-categories a {
|
||||
color: var(--b2b-ink);
|
||||
font-weight: 600;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.news-categories a:hover,
|
||||
.news-categories a:focus {
|
||||
opacity: 0.65;
|
||||
}
|
||||
|
||||
.news-card h2 {
|
||||
margin-bottom: 1rem;
|
||||
font-family: var(--b2b-font-display);
|
||||
font-size: clamp(1.45rem, 2vw, 1.9rem);
|
||||
font-weight: 400;
|
||||
line-height: 1.28;
|
||||
}
|
||||
|
||||
.news-card h2 a {
|
||||
color: var(--b2b-ink);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.news-card-body > p {
|
||||
margin-bottom: 1.5rem;
|
||||
color: var(--b2b-ink-soft);
|
||||
line-height: 1.75;
|
||||
}
|
||||
|
||||
.news-card-body .text-link {
|
||||
margin-top: auto;
|
||||
align-self: flex-start;
|
||||
}
|
||||
|
||||
.news-pagination {
|
||||
margin-top: clamp(3rem, 6vw, 5rem);
|
||||
}
|
||||
|
||||
.news-pagination .nav-links,
|
||||
.news-single .page-links {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.news-pagination .page-numbers,
|
||||
.news-single .post-page-numbers {
|
||||
display: inline-flex;
|
||||
min-width: 2.75rem;
|
||||
min-height: 2.75rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.6rem 0.85rem;
|
||||
color: var(--b2b-ink);
|
||||
background: var(--b2b-surface);
|
||||
border: 1px solid var(--b2b-line);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.news-pagination .page-numbers.current,
|
||||
.news-pagination .page-numbers:hover,
|
||||
.news-pagination .page-numbers:focus,
|
||||
.news-single .post-page-numbers.current,
|
||||
.news-single .post-page-numbers:hover,
|
||||
.news-single .post-page-numbers:focus {
|
||||
color: var(--b2b-surface);
|
||||
background: var(--b2b-ink);
|
||||
border-color: var(--b2b-ink);
|
||||
}
|
||||
|
||||
.news-empty {
|
||||
padding: clamp(3rem, 7vw, 6rem);
|
||||
background: var(--b2b-mist);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.news-empty h2 {
|
||||
margin-bottom: 1rem;
|
||||
font-family: var(--b2b-font-display);
|
||||
font-size: clamp(1.8rem, 3vw, 2.5rem);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.news-empty p {
|
||||
margin: 0 auto 2rem;
|
||||
color: var(--b2b-ink-soft);
|
||||
}
|
||||
|
||||
.news-single {
|
||||
padding-bottom: clamp(5rem, 8vw, 8rem);
|
||||
}
|
||||
|
||||
.news-single-header {
|
||||
max-width: 940px;
|
||||
margin: 2rem auto clamp(2.5rem, 5vw, 4.5rem);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.news-single-header .news-meta {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.news-single-header h1 {
|
||||
margin: 0;
|
||||
font-family: var(--b2b-font-display);
|
||||
font-size: clamp(2.5rem, 5vw, 4.8rem);
|
||||
font-weight: 300;
|
||||
line-height: 1.14;
|
||||
}
|
||||
|
||||
.news-single-image {
|
||||
max-width: 1120px;
|
||||
margin: 0 auto clamp(3rem, 6vw, 5rem);
|
||||
overflow: hidden;
|
||||
background: var(--b2b-mist);
|
||||
}
|
||||
|
||||
.news-single-image img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.news-single-content {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
color: var(--b2b-ink);
|
||||
font-size: 1.05rem;
|
||||
line-height: 1.9;
|
||||
}
|
||||
|
||||
.news-single-content > * {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.news-single-content h2,
|
||||
.news-single-content h3,
|
||||
.news-single-content h4 {
|
||||
margin-top: 2.25em;
|
||||
margin-bottom: 0.75em;
|
||||
font-family: var(--b2b-font-display);
|
||||
font-weight: 400;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.news-single-content a {
|
||||
color: var(--b2b-ink);
|
||||
text-underline-offset: 0.18em;
|
||||
}
|
||||
|
||||
.news-single-content img,
|
||||
.news-single-content figure {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.news-single-content blockquote {
|
||||
margin: 2rem 0;
|
||||
padding: 0.25rem 0 0.25rem 1.5rem;
|
||||
color: var(--b2b-ink-soft);
|
||||
border-left: 3px solid var(--b2b-ink);
|
||||
}
|
||||
|
||||
.news-single .page-links {
|
||||
margin-top: 2.5rem;
|
||||
}
|
||||
|
||||
.news-post-navigation {
|
||||
max-width: 960px;
|
||||
margin: clamp(4rem, 8vw, 7rem) auto 0;
|
||||
padding-top: 2rem;
|
||||
border-top: 1px solid var(--b2b-line);
|
||||
}
|
||||
|
||||
.news-post-navigation .nav-links {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 2rem;
|
||||
}
|
||||
|
||||
.news-post-navigation .nav-next {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.news-post-navigation a {
|
||||
display: inline-flex;
|
||||
color: var(--b2b-ink);
|
||||
flex-direction: column;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.news-post-navigation .nav-subtitle {
|
||||
margin-bottom: 0.5rem;
|
||||
color: var(--b2b-ink-muted);
|
||||
font-size: 0.72rem;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.news-post-navigation .nav-title {
|
||||
font-family: var(--b2b-font-display);
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.news-single-cta {
|
||||
max-width: 960px;
|
||||
margin: clamp(3rem, 6vw, 5rem) auto 0;
|
||||
padding: clamp(2rem, 5vw, 4rem);
|
||||
background: var(--b2b-mist);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.news-single-cta h2 {
|
||||
margin-bottom: 1rem;
|
||||
font-family: var(--b2b-font-display);
|
||||
font-size: clamp(1.8rem, 3vw, 2.5rem);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.news-single-cta p {
|
||||
max-width: 650px;
|
||||
margin: 0 auto 2rem;
|
||||
color: var(--b2b-ink-soft);
|
||||
}
|
||||
|
||||
/* ---- Reveal Motion ---- */
|
||||
.motion-ready .reveal-item {
|
||||
opacity: 0;
|
||||
@@ -1395,6 +1894,7 @@ textarea:focus-visible {
|
||||
.b2b-header .offcanvas .nav-item:nth-child(4) { transition-delay: 120ms; }
|
||||
.b2b-header .offcanvas .nav-item:nth-child(5) { transition-delay: 160ms; }
|
||||
.b2b-header .offcanvas .nav-item:nth-child(6) { transition-delay: 200ms; }
|
||||
.b2b-header .offcanvas .nav-item:nth-child(7) { transition-delay: 240ms; }
|
||||
|
||||
.b2b-header .offcanvas.hiding .nav-item {
|
||||
opacity: 0;
|
||||
@@ -1442,6 +1942,14 @@ textarea:focus-visible {
|
||||
|
||||
/* LG down — 991px */
|
||||
@media (max-width: 991px) {
|
||||
.cases-carousel {
|
||||
--carousel-items: 1;
|
||||
}
|
||||
|
||||
.cases-carousel .b2b-carousel-track {
|
||||
grid-auto-columns: 100%;
|
||||
}
|
||||
|
||||
.b2b-section {
|
||||
padding: 5rem 0;
|
||||
}
|
||||
@@ -1459,6 +1967,10 @@ textarea:focus-visible {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.news-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.factory-video-section {
|
||||
padding-bottom: 5rem;
|
||||
}
|
||||
@@ -1533,6 +2045,19 @@ textarea:focus-visible {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.news-grid,
|
||||
.news-post-navigation .nav-links {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.news-post-navigation .nav-next {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.b2b-carousel-controls {
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
|
||||
.factory-gallery {
|
||||
grid-template-rows: repeat(2, 160px);
|
||||
}
|
||||
@@ -1591,8 +2116,25 @@ textarea:focus-visible {
|
||||
}
|
||||
}
|
||||
|
||||
/* XS carousel — 575px */
|
||||
@media (max-width: 575px) {
|
||||
.services-carousel,
|
||||
.cases-carousel {
|
||||
--carousel-items: 1;
|
||||
}
|
||||
|
||||
.b2b-carousel .b2b-carousel-track {
|
||||
grid-auto-columns: 100%;
|
||||
grid-template-columns: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* SM down — 480px */
|
||||
@media (max-width: 480px) {
|
||||
.row.g-5 {
|
||||
--bs-gutter-x: 1.5rem;
|
||||
}
|
||||
|
||||
.b2b-hero .btn {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 95 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 118 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 143 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 74 KiB |
|
After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 79 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 97 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 154 KiB |
|
After Width: | Height: | Size: 69 KiB |
|
After Width: | Height: | Size: 153 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 124 KiB |
|
After Width: | Height: | Size: 89 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 163 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 169 KiB |
|
After Width: | Height: | Size: 122 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 152 KiB |
|
After Width: | Height: | Size: 123 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 82 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 90 KiB |
|
After Width: | Height: | Size: 135 KiB |
|
After Width: | Height: | Size: 102 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 275 KiB |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 675" role="img" aria-labelledby="title description">
|
||||
<title id="title">新闻资讯图片占位</title>
|
||||
<desc id="description">用于没有特色图片的新闻文章</desc>
|
||||
<rect width="1200" height="675" fill="#ecece8"/>
|
||||
<path d="M0 505 264 352l173 92 212-148 551 262v117H0Z" fill="#d6d6d0"/>
|
||||
<circle cx="893" cy="185" r="66" fill="#fafaf8"/>
|
||||
<path d="M406 220h388v18H406zm0 55h286v12H406zm0 42h342v12H406z" fill="#1c1c1a" opacity=".72"/>
|
||||
<rect x="383" y="188" width="434" height="184" rx="2" fill="none" stroke="#1c1c1a" stroke-width="4" opacity=".3"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 635 B |
|
After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 140 KiB |
|
After Width: | Height: | Size: 148 KiB |
|
After Width: | Height: | Size: 165 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 277 KiB |
|
After Width: | Height: | Size: 127 KiB |
|
After Width: | Height: | Size: 326 KiB |
|
After Width: | Height: | Size: 239 KiB |
|
Before Width: | Height: | Size: 301 KiB After Width: | Height: | Size: 172 KiB |
|
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 318 KiB After Width: | Height: | Size: 179 KiB |
|
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 504 KiB After Width: | Height: | Size: 278 KiB |
|
After Width: | Height: | Size: 264 KiB |
@@ -25,6 +25,217 @@
|
||||
});
|
||||
}
|
||||
|
||||
function initCarousels() {
|
||||
var reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
|
||||
document.querySelectorAll('[data-carousel]').forEach(function (carousel) {
|
||||
var viewport = carousel.querySelector('.b2b-carousel-viewport');
|
||||
var track = carousel.querySelector('.b2b-carousel-track');
|
||||
var slides = Array.prototype.slice.call(carousel.querySelectorAll('.b2b-carousel-slide'));
|
||||
var previousButton = carousel.querySelector('.b2b-carousel-prev');
|
||||
var nextButton = carousel.querySelector('.b2b-carousel-next');
|
||||
var dotsContainer = carousel.querySelector('.b2b-carousel-dots');
|
||||
var autoplayDelay = parseInt(carousel.getAttribute('data-autoplay'), 10) || 9000;
|
||||
var pageLabel = carousel.getAttribute('data-page-label') || 'Page %d';
|
||||
var currentPage = 0;
|
||||
var pageCount = 1;
|
||||
var autoplayTimer = null;
|
||||
var scrollTimer = null;
|
||||
var resizeTimer = null;
|
||||
var hoverPaused = false;
|
||||
var focusPaused = false;
|
||||
var pointerPaused = false;
|
||||
|
||||
if (!viewport || !track || !slides.length || !previousButton || !nextButton || !dotsContainer) {
|
||||
return;
|
||||
}
|
||||
|
||||
function getItemsPerPage() {
|
||||
var value = parseInt(window.getComputedStyle(carousel).getPropertyValue('--carousel-items'), 10);
|
||||
return Math.max(1, value || 1);
|
||||
}
|
||||
|
||||
function updateDots() {
|
||||
dotsContainer.querySelectorAll('.b2b-carousel-dot').forEach(function (dot, index) {
|
||||
var active = index === currentPage;
|
||||
dot.classList.toggle('is-active', active);
|
||||
dot.setAttribute('aria-current', active ? 'true' : 'false');
|
||||
});
|
||||
}
|
||||
|
||||
function stopAutoplay() {
|
||||
if (!autoplayTimer) return;
|
||||
window.clearInterval(autoplayTimer);
|
||||
autoplayTimer = null;
|
||||
}
|
||||
|
||||
function goToPage(page, smooth) {
|
||||
if (!pageCount) return;
|
||||
currentPage = (page + pageCount) % pageCount;
|
||||
var targetIndex = Math.min(currentPage * getItemsPerPage(), slides.length - 1);
|
||||
var maximumScroll = Math.max(0, viewport.scrollWidth - viewport.clientWidth);
|
||||
viewport.scrollTo({
|
||||
left: Math.min(slides[targetIndex].offsetLeft, maximumScroll),
|
||||
behavior: smooth && !reducedMotion ? 'smooth' : 'auto'
|
||||
});
|
||||
updateDots();
|
||||
}
|
||||
|
||||
function startAutoplay() {
|
||||
stopAutoplay();
|
||||
if (
|
||||
reducedMotion ||
|
||||
hoverPaused ||
|
||||
focusPaused ||
|
||||
pointerPaused ||
|
||||
pageCount < 2 ||
|
||||
document.hidden
|
||||
) {
|
||||
return;
|
||||
}
|
||||
autoplayTimer = window.setInterval(function () {
|
||||
goToPage(currentPage + 1, true);
|
||||
}, Math.max(autoplayDelay, 7000));
|
||||
}
|
||||
|
||||
function buildDots() {
|
||||
var itemsPerPage = getItemsPerPage();
|
||||
var nextPageCount = Math.ceil(slides.length / itemsPerPage);
|
||||
var fragment = document.createDocumentFragment();
|
||||
|
||||
pageCount = Math.max(1, nextPageCount);
|
||||
currentPage = Math.min(currentPage, pageCount - 1);
|
||||
dotsContainer.textContent = '';
|
||||
|
||||
for (var index = 0; index < pageCount; index += 1) {
|
||||
var dot = document.createElement('button');
|
||||
dot.type = 'button';
|
||||
dot.className = 'b2b-carousel-dot';
|
||||
dot.setAttribute('aria-label', pageLabel.replace('%d', index + 1));
|
||||
dot.dataset.page = index;
|
||||
dot.addEventListener('click', function () {
|
||||
goToPage(parseInt(this.dataset.page, 10), true);
|
||||
startAutoplay();
|
||||
});
|
||||
fragment.appendChild(dot);
|
||||
}
|
||||
|
||||
dotsContainer.appendChild(fragment);
|
||||
carousel.classList.toggle('has-single-page', pageCount < 2);
|
||||
updateDots();
|
||||
goToPage(currentPage, false);
|
||||
startAutoplay();
|
||||
}
|
||||
|
||||
previousButton.addEventListener('click', function () {
|
||||
goToPage(currentPage - 1, true);
|
||||
startAutoplay();
|
||||
});
|
||||
|
||||
nextButton.addEventListener('click', function () {
|
||||
goToPage(currentPage + 1, true);
|
||||
startAutoplay();
|
||||
});
|
||||
|
||||
viewport.addEventListener(
|
||||
'scroll',
|
||||
function () {
|
||||
window.clearTimeout(scrollTimer);
|
||||
scrollTimer = window.setTimeout(function () {
|
||||
var itemsPerPage = getItemsPerPage();
|
||||
var maximumScroll = Math.max(0, viewport.scrollWidth - viewport.clientWidth);
|
||||
var closestPage = 0;
|
||||
var closestDistance = Number.POSITIVE_INFINITY;
|
||||
|
||||
for (var page = 0; page < pageCount; page += 1) {
|
||||
var targetIndex = Math.min(page * itemsPerPage, slides.length - 1);
|
||||
var targetPosition = Math.min(slides[targetIndex].offsetLeft, maximumScroll);
|
||||
var distance = Math.abs(viewport.scrollLeft - targetPosition);
|
||||
if (distance < closestDistance) {
|
||||
closestDistance = distance;
|
||||
closestPage = page;
|
||||
}
|
||||
}
|
||||
|
||||
currentPage = closestPage;
|
||||
updateDots();
|
||||
}, 100);
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
|
||||
carousel.addEventListener('mouseenter', function () {
|
||||
hoverPaused = true;
|
||||
stopAutoplay();
|
||||
});
|
||||
|
||||
carousel.addEventListener('mouseleave', function () {
|
||||
hoverPaused = false;
|
||||
startAutoplay();
|
||||
});
|
||||
|
||||
carousel.addEventListener('focusin', function () {
|
||||
focusPaused = true;
|
||||
stopAutoplay();
|
||||
});
|
||||
|
||||
carousel.addEventListener('focusout', function () {
|
||||
window.setTimeout(function () {
|
||||
if (carousel.contains(document.activeElement)) return;
|
||||
focusPaused = false;
|
||||
startAutoplay();
|
||||
}, 0);
|
||||
});
|
||||
|
||||
viewport.addEventListener(
|
||||
'pointerdown',
|
||||
function () {
|
||||
pointerPaused = true;
|
||||
stopAutoplay();
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
|
||||
viewport.addEventListener(
|
||||
'pointerup',
|
||||
function () {
|
||||
pointerPaused = false;
|
||||
startAutoplay();
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
|
||||
viewport.addEventListener(
|
||||
'pointercancel',
|
||||
function () {
|
||||
pointerPaused = false;
|
||||
startAutoplay();
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
|
||||
window.addEventListener(
|
||||
'resize',
|
||||
function () {
|
||||
window.clearTimeout(resizeTimer);
|
||||
resizeTimer = window.setTimeout(buildDots, 160);
|
||||
},
|
||||
{ passive: true }
|
||||
);
|
||||
|
||||
document.addEventListener('visibilitychange', function () {
|
||||
if (document.hidden) {
|
||||
stopAutoplay();
|
||||
} else {
|
||||
startAutoplay();
|
||||
}
|
||||
});
|
||||
|
||||
carousel.classList.add('is-ready');
|
||||
buildDots();
|
||||
});
|
||||
}
|
||||
|
||||
function initRevealMotion() {
|
||||
var reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||
var compactMotion = window.matchMedia('(max-width: 768px)').matches;
|
||||
@@ -53,11 +264,12 @@
|
||||
prepareGroup('.trust-strip .row', '.trust-metric', 60);
|
||||
prepareGroup('.capability-grid', '.capability-card', 60);
|
||||
prepareGroup('.case-grid', '.case-card', 60);
|
||||
prepareGroup('.news-grid', '.news-card', 60);
|
||||
prepareGroup('.factory-gallery', 'figure', 60);
|
||||
prepareGroup('.credentials-grid', '.credential-card', 60);
|
||||
prepareGroup('.document-grid', 'article', 60);
|
||||
prepareGroup('.contact-detail-grid', '.contact-detail-card', 60);
|
||||
prepareGroup('.service-content, .case-content', ':scope > *', 40);
|
||||
prepareGroup('.service-content, .case-content, .news-single-content', ':scope > *', 40);
|
||||
|
||||
document.querySelectorAll(
|
||||
[
|
||||
@@ -70,6 +282,11 @@
|
||||
'.contact-store-media',
|
||||
'.contact-map-heading',
|
||||
'.contact-map-panel',
|
||||
'.news-page-header',
|
||||
'.news-single-header',
|
||||
'.news-single-image',
|
||||
'.news-post-navigation',
|
||||
'.news-single-cta',
|
||||
'.cta-section .container',
|
||||
'.about-cta .container',
|
||||
'.page-header'
|
||||
@@ -111,6 +328,7 @@
|
||||
function initTheme() {
|
||||
initStickyHeader();
|
||||
initNavigation();
|
||||
initCarousels();
|
||||
initRevealMotion();
|
||||
}
|
||||
|
||||
|
||||