/*
Theme Name: Hello Elementor Child – 客信新材料
Theme URI: https://www.psste.com
Description: 客信新材料企业官网子主题 – 涂料行业品牌定制
Author: WorkBuddy
Author URI: https://www.psste.com
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child-psste
*/
/* ============================================
品牌CSS变量
============================================ */
:root {
–brand-primary: #1A5FB4;
–brand-secondary: #3584E4;
–brand-dark: #0D3B6F;
–brand-light: #E5F0FF;
–brand-accent: #FF6B35;
–text-primary: #333333;
–text-secondary: #666666;
–text-light: #999999;
–border-color: #E0E0E0;
–bg-page: #FAFAFA;
–bg-white: #FFFFFF;
–shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
–shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
–radius-sm: 6px;
–radius-md: 8px;
–radius-lg: 12px;
–transition: all 0.3s ease;
}
/* ============================================
全局排版
============================================ */
body {
font-family: system-ui, -apple-system, “Segoe UI”, Roboto, “Helvetica Neue”, Arial, “Noto Sans”, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”;
color: var(–text-primary);
background: var(–bg-page);
-webkit-font-smoothing: antialiased;
}
h1 { font-size: 48px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 36px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.4; }
h4 { font-size: 20px; font-weight: 600; line-height: 1.4; }
a {
color: var(–brand-secondary);
transition: var(–transition);
}
a:hover {
color: var(–brand-primary);
}
/* ============================================
导航栏定制
============================================ */
.site-header {
background: var(–bg-white);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
position: sticky;
top: 0;
z-index: 999;
}
/* 活跃菜单项下划线 */
.elementor-nav-menu .current-menu-item > a {
border-bottom: 2px solid var(–brand-primary);
color: var(–brand-primary) !important;
}
/* ============================================
按钮样式
============================================ */
.btn-primary {
background: var(–brand-primary) !important;
color: #fff !important;
border-radius: var(–radius-sm);
padding: 14px 36px;
font-weight: 600;
transition: var(–transition);
}
.btn-primary:hover {
background: var(–brand-dark) !important;
transform: translateY(-2px);
box-shadow: var(–shadow-hover);
}
.btn-accent {
background: var(–brand-accent) !important;
color: #fff !important;
border-radius: var(–radius-sm);
padding: 14px 36px;
font-weight: 600;
transition: var(–transition);
}
.btn-accent:hover {
background: #e55a2b !important;
transform: translateY(-2px);
}
.btn-outline {
background: transparent !important;
color: var(–brand-primary) !important;
border: 2px solid var(–brand-primary) !important;
border-radius: var(–radius-sm);
padding: 12px 34px;
font-weight: 600;
transition: var(–transition);
}
.btn-outline:hover {
background: var(–brand-primary) !important;
color: #fff !important;
}
/* ============================================
产品卡片效果
============================================ */
.product-card {
border-radius: var(–radius-lg);
overflow: hidden;
background: var(–bg-white);
box-shadow: var(–shadow-card);
transition: var(–transition);
}
.product-card:hover {
transform: translateY(-5px) scale(1.02);
box-shadow: var(–shadow-hover);
}
/* ============================================
CTA横幅
============================================ */
.cta-banner {
background: linear-gradient(135deg, var(–brand-primary) 0%, var(–brand-dark) 100%);
color: #fff;
text-align: center;
}
/* ============================================
Footer
============================================ */
.site-footer {
background: var(–brand-dark);
color: rgba(255, 255, 255, 0.85);
font-size: 14px;
}
.site-footer a {
color: rgba(255, 255, 255, 0.7);
}
.site-footer a:hover {
color: #fff;
}
/* ============================================
Logo墙悬停效果
============================================ */
.logo-wall img {
filter: grayscale(100%);
opacity: 0.6;
transition: var(–transition);
}
.logo-wall img:hover {
filter: grayscale(0%);
opacity: 1;
transform: translateY(-5px);
}
/* ============================================
文章卡片
============================================ */
.post-card {
border-radius: var(–radius-lg);
overflow: hidden;
background: var(–bg-white);
box-shadow: var(–shadow-card);
transition: var(–transition);
}
.post-card:hover {
transform: translateY(-4px);
box-shadow: var(–shadow-hover);
}
.post-card .post-date {
color: var(–text-light);
font-size: 13px;
}
.post-card .post-category {
background: var(–brand-light);
color: var(–brand-primary);
padding: 2px 10px;
border-radius: var(–radius-sm);
font-size: 12px;
}
/* ============================================
时间轴样式
============================================ */
.timeline {
position: relative;
padding: 20px 0;
}
.timeline::before {
content: ”;
position: absolute;
left: 50%;
top: 0;
bottom: 0;
width: 2px;
background: var(–brand-secondary);
transform: translateX(-50%);
}
.timeline-item {
position: relative;
margin-bottom: 40px;
}
.timeline-dot {
width: 16px;
height: 16px;
background: var(–brand-primary);
border-radius: 50%;
border: 3px solid var(–brand-light);
}
/* ============================================
联系表单
============================================ */
.contact-form input,
.contact-form textarea,
.contact-form select {
border: 1px solid var(–border-color) !important;
border-radius: var(–radius-sm);
padding: 12px 16px;
transition: var(–transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(–brand-primary) !important;
box-shadow: 0 0 0 3px rgba(26, 95, 180, 0.1);
outline: none;
}
/* ============================================
响应式
============================================ */
@media (max-width: 1024px) {
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
}
@media (max-width: 767px) {
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
body { font-size: 14px; }
.btn-primary, .btn-accent, .btn-outline {
padding: 12px 28px;
font-size: 14px;
}
}
/* ============================================
WooCommerce 询价模式
============================================ */
.woocommerce .price {
display: none;
}
.woocommerce .single-product .price::before {
content: “面议 / 获取报价”;
display: block;
color: var(–brand-primary);
font-weight: 600;
font-size: 18px;
}
.woocommerce .product .button {
background: var(–brand-primary) !important;
color: #fff !important;
border-radius: var(–radius-sm);
}
.woocommerce .product .button:hover {
background: var(–brand-dark) !important;
}