Files
car-t-t/assets/css/theme.css
T
zhs123 2a64ce8daa feat: initial commit - 汽车贴膜门店 WordPress 主题 (B2B Trade v2.0.0)
- WordPress classic theme for car tinting/foil shop
- 13 homepage template parts
- Customizer panel with 13 sections
- RFQ inquiry form handler
- Bootstrap 5.3 + AOS + Colorbox frontend
- 13 SVG placeholder images
- Chinese content defaults
2026-07-24 13:52:59 +08:00

1032 lines
18 KiB
CSS

:root {
--b2b-ink: #19343d;
--b2b-ink-soft: #526a72;
--b2b-blue: #6f929f;
--b2b-blue-dark: #426874;
--b2b-mist: #e8f1f4;
--b2b-mist-light: #f5f9fa;
--b2b-sand: #f2eee8;
--b2b-line: #d9e2e5;
--b2b-white: #ffffff;
--b2b-shadow: 0 20px 55px rgba(25, 52, 61, 0.1);
}
html {
scroll-behavior: smooth;
scroll-padding-top: 92px;
overflow-x: clip;
}
body {
margin: 0;
color: var(--b2b-ink-soft);
background: var(--b2b-white);
font-family: "Josefin Sans", "Noto Sans SC", Arial, sans-serif;
font-size: 17px;
line-height: 1.65;
overflow-x: clip;
}
body,
button,
input,
select,
textarea {
letter-spacing: 0.015em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
color: var(--b2b-ink);
font-family: "Jost", "Noto Sans SC", Arial, sans-serif;
font-weight: 400;
line-height: 1.15;
}
p:last-child {
margin-bottom: 0;
}
a {
color: var(--b2b-blue-dark);
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;
}
img {
max-width: 100%;
height: auto;
}
.fragrance-symbols {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
.b2b-section {
position: relative;
padding: 110px 0;
}
.section-heading {
max-width: 860px;
}
.section-heading.text-center {
max-width: 820px;
}
.section-heading h2,
.factory-proof h2,
.customization-section h2,
.documents-section h2,
.faq-section h2,
.rfq-section h2 {
margin-bottom: 22px;
font-size: clamp(2.25rem, 4vw, 4rem);
letter-spacing: -0.025em;
}
.section-heading p,
.section-lead {
font-size: 1.1rem;
}
.section-eyebrow {
margin-bottom: 16px;
color: var(--b2b-blue-dark);
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.2em;
text-transform: uppercase;
}
.btn {
border-radius: 0;
font-size: 0.86rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover {
transform: translateY(-2px);
}
.btn-b2b-primary {
padding: 15px 24px;
color: var(--b2b-white);
background: var(--b2b-ink);
border: 1px solid var(--b2b-ink);
}
.btn-b2b-primary:hover,
.btn-b2b-primary:focus {
color: var(--b2b-white);
background: var(--b2b-blue-dark);
border-color: var(--b2b-blue-dark);
}
.btn-b2b-secondary,
.btn-b2b-outline {
padding: 15px 24px;
color: var(--b2b-ink);
background: transparent;
border: 1px solid var(--b2b-ink);
}
.btn-b2b-secondary:hover,
.btn-b2b-outline:hover {
color: var(--b2b-white);
background: var(--b2b-ink);
}
.btn-b2b-light {
padding: 14px 22px;
color: var(--b2b-ink);
background: var(--b2b-white);
border: 1px solid var(--b2b-white);
}
.text-link {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--b2b-ink);
font-size: 0.83rem;
font-weight: 700;
letter-spacing: 0.06em;
text-decoration: none;
text-transform: uppercase;
}
.text-link:hover {
color: var(--b2b-blue-dark);
}
/* Header */
.b2b-header {
color: var(--b2b-ink);
background: rgba(255, 255, 255, 0.96);
border-bottom: 1px solid rgba(25, 52, 61, 0.08);
backdrop-filter: blur(14px);
transition: box-shadow 180ms ease, background-color 180ms ease;
}
.b2b-header.sticky {
background: rgba(255, 255, 255, 0.99);
box-shadow: 0 8px 28px rgba(25, 52, 61, 0.09);
}
.b2b-header .navbar {
min-height: 86px;
}
.b2b-wordmark {
color: var(--b2b-ink);
font-family: "Jost", "Noto Sans SC", Arial, sans-serif;
font-size: 1.45rem;
letter-spacing: 0.12em;
text-decoration: none;
text-transform: uppercase;
}
.custom-logo,
.custom-logo-link img {
width: auto;
max-width: 220px;
max-height: 62px;
}
.b2b-header .nav-link {
color: var(--b2b-ink);
font-size: 0.84rem;
font-weight: 600;
letter-spacing: 0.04em;
}
.b2b-header .nav-link:hover,
.b2b-header .nav-link:focus {
color: var(--b2b-blue-dark);
}
.b2b-header-cta {
padding: 11px 17px;
color: var(--b2b-white);
background: var(--b2b-ink);
border: 1px solid var(--b2b-ink);
white-space: nowrap;
}
.admin-bar .site-header {
top: 32px;
}
/* Hero */
.b2b-hero {
display: flex;
min-height: 780px;
padding: 160px 0 90px;
align-items: center;
background:
radial-gradient(circle at 84% 12%, rgba(111, 146, 159, 0.18), transparent 30%),
linear-gradient(135deg, var(--b2b-mist-light), var(--b2b-mist));
}
.b2b-hero h1 {
max-width: 900px;
margin-bottom: 28px;
font-size: clamp(3rem, 6.4vw, 6.4rem);
letter-spacing: -0.04em;
}
.b2b-hero-lead {
max-width: 760px;
font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}
.hero-proof-list li {
position: relative;
padding-left: 18px;
color: var(--b2b-ink);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.05em;
text-transform: uppercase;
}
.hero-proof-list li::before {
position: absolute;
top: 0.72em;
left: 0;
width: 7px;
height: 7px;
content: "";
background: var(--b2b-blue);
border-radius: 50%;
}
/* Trust strip */
.trust-strip {
color: var(--b2b-white);
background: var(--b2b-ink);
}
.trust-metric {
min-height: 145px;
padding: 30px 24px;
border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.trust-metric:last-child {
border-right: 0;
}
.trust-metric strong,
.trust-metric span {
display: block;
}
.trust-metric strong {
margin-bottom: 7px;
color: var(--b2b-white);
font-family: "Jost", "Noto Sans SC", Arial, sans-serif;
font-size: clamp(1.45rem, 2.7vw, 2.25rem);
font-weight: 400;
}
.trust-metric span {
color: rgba(255, 255, 255, 0.72);
font-size: 0.82rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
/* Services */
.services-section {
background: var(--b2b-white);
}
.service-card {
display: flex;
min-height: 360px;
padding: 32px;
flex-direction: column;
background: var(--b2b-mist-light);
border: 1px solid var(--b2b-line);
transition: transform 180ms ease, box-shadow 180ms ease;
}
.service-card:hover {
transform: translateY(-6px);
box-shadow: var(--b2b-shadow);
}
.card-index {
margin-bottom: 46px;
color: var(--b2b-blue);
font-family: "Jost", "Noto Sans SC", Arial, sans-serif;
font-size: 1.1rem;
}
.service-card h3 {
margin-bottom: 18px;
font-size: 1.55rem;
}
.service-card p {
margin-bottom: 28px;
}
.service-card .text-link {
margin-top: auto;
}
/* Capability grid */
.capabilities-section {
background: var(--b2b-mist-light);
}
.capability-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 28px;
}
.capability-card {
display: grid;
min-width: 0;
overflow: hidden;
grid-template-rows: auto 1fr;
background: var(--b2b-white);
border: 1px solid var(--b2b-line);
}
.capability-image {
aspect-ratio: 1;
overflow: hidden;
background: var(--b2b-mist);
}
.capability-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 400ms ease;
}
.capability-card:hover .capability-image img {
transform: scale(1.035);
}
.capability-body {
display: flex;
min-width: 0;
padding: 28px;
flex-direction: column;
}
.capability-label {
color: var(--b2b-blue-dark);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.capability-body h3 {
font-size: clamp(1.4rem, 2vw, 1.85rem);
}
.capability-specs {
padding-top: 18px;
margin-bottom: 22px;
color: var(--b2b-ink);
border-top: 1px solid var(--b2b-line);
font-size: 0.88rem;
font-weight: 600;
}
.capability-body .btn {
margin-top: auto;
align-self: flex-start;
}
/* Customization */
.customization-section {
color: rgba(255, 255, 255, 0.74);
background: var(--b2b-ink);
}
.customization-section h2,
.customization-section .section-eyebrow {
color: var(--b2b-white);
}
.customization-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
border-top: 1px solid rgba(255, 255, 255, 0.16);
border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.customization-item {
min-width: 0;
padding: 27px;
border-right: 1px solid rgba(255, 255, 255, 0.16);
border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.customization-item span {
display: block;
margin-bottom: 20px;
color: var(--b2b-blue);
font-size: 0.8rem;
}
.customization-item h3 {
margin: 0;
color: var(--b2b-white);
font-size: 1.2rem;
}
/* Factory proof */
.factory-proof {
background: var(--b2b-white);
}
.factory-points li {
display: flex;
margin-bottom: 14px;
gap: 12px;
color: var(--b2b-ink);
}
.factory-points span {
color: var(--b2b-blue-dark);
font-weight: 700;
}
.factory-gallery {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: repeat(2, 250px);
gap: 16px;
}
.factory-gallery figure {
margin: 0;
overflow: hidden;
background: var(--b2b-mist);
}
.factory-gallery figure:first-child {
grid-row: span 2;
}
.factory-gallery img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Factory video */
.factory-video-section {
padding-bottom: 110px;
}
.factory-video-card {
position: relative;
min-height: 560px;
overflow: hidden;
background: var(--b2b-ink);
}
.factory-video-card > img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.68;
}
.factory-video-overlay {
position: relative;
z-index: 1;
display: flex;
max-width: 760px;
min-height: 560px;
padding: 70px;
flex-direction: column;
justify-content: center;
color: rgba(255, 255, 255, 0.82);
}
.factory-video-overlay h2,
.factory-video-overlay .section-eyebrow {
color: var(--b2b-white);
}
.factory-video-overlay h2 {
font-size: clamp(2.2rem, 4.6vw, 4.6rem);
}
.factory-video-disclosure {
max-width: 620px;
margin-top: 8px;
color: rgba(255, 255, 255, 0.68);
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.04em;
}
.video-play-link {
display: inline-flex;
margin-top: 24px;
align-items: center;
gap: 16px;
color: var(--b2b-white);
font-weight: 700;
text-decoration: none;
}
/* Quality */
.quality-section {
background: var(--b2b-sand);
}
.quality-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 1px;
background: rgba(25, 52, 61, 0.14);
border: 1px solid rgba(25, 52, 61, 0.14);
}
.quality-card {
min-width: 0;
min-height: 285px;
padding: 34px;
background: var(--b2b-sand);
}
.quality-number {
display: block;
margin-bottom: 45px;
color: var(--b2b-blue-dark);
font-size: 0.82rem;
font-weight: 700;
}
.quality-card h3 {
font-size: 1.35rem;
}
/* Process */
.process-section {
background: var(--b2b-white);
}
.process-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 22px;
}
.process-step {
position: relative;
min-width: 0;
min-height: 285px;
padding: 30px 26px;
background: var(--b2b-mist-light);
border-top: 4px solid var(--b2b-blue);
}
.process-step span {
display: block;
margin-bottom: 35px;
color: var(--b2b-blue-dark);
font-weight: 700;
}
.process-step h3 {
font-size: 1.28rem;
}
/* Project scenarios */
.projects-section {
background: var(--b2b-mist);
}
.project-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 24px;
}
.project-card {
display: flex;
min-width: 0;
min-height: 360px;
padding: 36px;
flex-direction: column;
background: var(--b2b-white);
}
.project-meta {
color: var(--b2b-blue-dark);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.12em;
}
.project-card h3 {
margin: 22px 0;
font-size: 1.75rem;
}
.project-card .text-link {
margin-top: auto;
}
/* Documents */
.documents-section {
color: rgba(255, 255, 255, 0.72);
background: var(--b2b-blue-dark);
}
.documents-section h2,
.documents-section h3,
.documents-section .section-eyebrow {
color: var(--b2b-white);
}
.document-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
}
.document-grid article {
display: flex;
min-width: 0;
padding: 26px;
gap: 16px;
border: 1px solid rgba(255, 255, 255, 0.18);
}
.document-grid article > span {
color: var(--b2b-white);
font-weight: 700;
}
.document-grid h3 {
font-size: 1.18rem;
}
.document-grid p {
font-size: 0.94rem;
}
/* FAQ */
.faq-section {
background: var(--b2b-white);
}
.faq-section .accordion-item {
border: 0;
border-bottom: 1px solid var(--b2b-line);
}
.faq-section .accordion-button {
padding: 24px 0;
color: var(--b2b-ink);
background: transparent;
box-shadow: none;
font-family: "Jost", "Noto Sans SC", Arial, sans-serif;
font-size: 1.15rem;
}
.faq-section .accordion-button:not(.collapsed) {
color: var(--b2b-blue-dark);
}
.faq-section .accordion-body {
padding: 0 0 25px;
}
/* RFQ */
.rfq-section {
background: var(--b2b-mist-light);
}
.rfq-direct {
margin-top: 40px;
padding: 24px;
background: var(--b2b-white);
border-left: 4px solid var(--b2b-blue);
}
.rfq-direct h3 {
font-size: 1.1rem;
}
.rfq-form-card {
padding: 34px;
background: var(--b2b-white);
box-shadow: var(--b2b-shadow);
}
.rfq-form-card label {
display: block;
margin-bottom: 7px;
color: var(--b2b-ink);
font-size: 0.82rem;
font-weight: 700;
}
.rfq-form-card .form-control,
.rfq-form-card .form-select {
min-height: 46px;
color: var(--b2b-ink);
background-color: var(--b2b-mist-light);
border: 1px solid var(--b2b-line);
border-radius: 0;
}
.rfq-form-card textarea.form-control {
min-height: auto;
}
.rfq-form-card .form-control:focus,
.rfq-form-card .form-select:focus {
border-color: var(--b2b-blue-dark);
box-shadow: 0 0 0 3px rgba(111, 146, 159, 0.16);
}
.rfq-privacy-note {
margin: 18px 0 14px;
color: var(--b2b-muted);
font-size: 0.78rem;
}
.fragrance-form-status p {
margin-bottom: 24px;
padding: 14px 16px;
color: var(--b2b-ink);
background: var(--b2b-mist);
border-left: 4px solid var(--b2b-blue-dark);
}
.fragrance-honeypot {
position: absolute !important;
left: -10000px !important;
width: 1px;
height: 1px;
overflow: hidden;
}
/* Footer */
.b2b-footer {
color: rgba(255, 255, 255, 0.68);
background: #11282f;
}
.b2b-footer a {
color: rgba(255, 255, 255, 0.8);
}
.b2b-footer a:hover {
color: var(--b2b-white);
}
.footer-positioning {
max-width: 520px;
font-size: 1.08rem;
}
.footer-kicker {
color: var(--b2b-white);
font-size: 0.78rem;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.footer-links li {
margin-bottom: 10px;
}
.footer-bottom {
border-color: rgba(255, 255, 255, 0.14) !important;
font-size: 0.8rem;
}
/* WordPress content and accessibility */
.fragrance-content-area {
min-height: 65vh;
padding-top: 135px !important;
padding-bottom: 80px !important;
}
.fragrance-entry {
max-width: 920px;
margin: 0 auto;
}
.entry-title {
font-size: clamp(2.2rem, 4vw, 4rem);
}
.screen-reader-text {
position: absolute !important;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
border: 0;
}
.screen-reader-text:focus,
.skip-link:focus {
top: 12px;
left: 12px;
z-index: 100000;
width: auto;
height: auto;
padding: 12px 16px;
clip: auto !important;
clip-path: none;
color: var(--b2b-ink);
background: var(--b2b-white);
box-shadow: 0 0 0 3px rgba(25, 52, 61, 0.25);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 3px solid var(--b2b-blue-dark);
outline-offset: 3px;
}
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.alignwide { width: 90vw; max-width: 90vw; margin-left: calc(50% - 45vw); }
.wp-caption, .gallery-caption { max-width: 100%; }
@media (max-width: 1199px) {
.b2b-header .offcanvas-body {
display: block;
padding: 36px;
}
.b2b-header .navbar-nav {
gap: 22px;
margin-bottom: 28px;
}
.capability-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.process-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 991px) {
.b2b-section {
padding: 82px 0;
}
.b2b-hero {
min-height: 0;
padding: 150px 0 80px;
}
.project-grid {
grid-template-columns: 1fr;
}
.quality-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.factory-gallery {
margin-top: 20px;
}
.factory-video-section {
padding-bottom: 82px;
}
}
@media (max-width: 782px) {
.admin-bar .site-header {
top: 46px;
}
}
@media (max-width: 768px) {
body {
font-size: 16px;
}
.b2b-section {
padding: 66px 0;
}
.b2b-hero {
padding-top: 132px;
}
.b2b-hero h1 {
font-size: clamp(2.6rem, 12vw, 4rem);
}
.hero-proof-list {
display: grid !important;
grid-template-columns: 1fr;
}
.trust-metric {
min-height: 130px;
padding: 24px 17px;
border-right: 1px solid rgba(255, 255, 255, 0.14);
border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.capability-grid,
.customization-grid,
.quality-grid,
.process-grid,
.document-grid {
grid-template-columns: 1fr;
}
.factory-gallery {
grid-template-rows: repeat(2, 180px);
}
.factory-video-card,
.factory-video-overlay {
min-height: 480px;
}
.factory-video-overlay,
.rfq-form-card {
padding: 30px 24px;
}
.project-card,
.service-card {
min-height: 0;
}
}
@media (max-width: 480px) {
.b2b-hero .btn {
width: 100%;
}
.factory-gallery {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(4, 220px);
}
.factory-gallery figure:first-child {
grid-row: auto;
}
.capability-body,
.service-card,
.quality-card,
.project-card {
padding: 26px 22px;
}
}
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto !important; }
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}