Custom CSS
-
March 9, 2026
-
140
/* ========================================
EuroTrendFashion 自定义样式
黑金配色 + 现代设计
======================================== */
/* 统一色彩系统 */
:root {
–color-black: #000000;
–color-gold: #D4AF37;
–color-gold-light: #F4D03F;
–color-white: #FFFFFF;
–color-gray: #CCCCCC;
–color-dark-gray: #1a1a1a;
}
/* 全局背景 */
body {
background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%) !important;
color: var(–color-white) !important;
}
/* 导航栏优化 */
.site-header {
background: rgba(0, 0, 0, 0.95) !important;
border-bottom: 2px solid var(–color-gold) !important;
backdrop-filter: blur(10px);
}
.site-title a {
color: var(–color-gold) !important;
font-weight: 700 !important;
font-size: 28px !important;
text-transform: uppercase;
letter-spacing: 2px;
}
.main-navigation a {
color: var(–color-white) !important;
transition: color 0.3s ease;
}
.main-navigation a:hover {
color: var(–color-gold) !important;
}
/* 首页英雄区 */
.site-main > .entry-header {
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
padding: 80px 20px !important;
text-align: center;
border: 2px solid var(–color-gold);
border-radius: 12px;
margin-bottom: 40px;
position: relative;
overflow: hidden;
}
.site-main > .entry-header::before {
content: ”;
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 0.5; }
50% { transform: scale(1.1); opacity: 0.8; }
}
.entry-title {
color: var(–color-gold) !important;
font-size: 48px !important;
font-weight: 700 !important;
margin-bottom: 20px !important;
text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
position: relative;
z-index: 1;
}
/* 商品网格优化 */
.woocommerce ul.products {
display: grid !important;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
gap: 30px !important;
padding: 20px !important;
}
/* 商品卡片 – 渐变色背景替代图片 */
.woocommerce ul.products li.product {
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
border: 2px solid var(–color-gold) !important;
border-radius: 12px !important;
padding: 0 !important;
transition: all 0.3s ease !important;
overflow: hidden;
position: relative;
}
.woocommerce ul.products li.product:hover {
transform: translateY(-8px);
box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
border-color: var(–color-gold-light);
}
/* 商品图片区域 – 使用渐变色 */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
width: 100% !important;
height: 320px !important;
object-fit: cover !important;
background: linear-gradient(135deg,
#2C3E50 0%,
#8E44AD 25%,
#C0392B 50%,
#16A085 75%,
#D35400 100%) !important;
border-radius: 8px 8px 0 0 !important;
}
/* 为每个商品设置不同的渐变色 */
.woocommerce ul.products li.product:nth-child(1) img {
background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%) !important;
}
.woocommerce ul.products li.product:nth-child(2) img {
background: linear-gradient(135deg, #8E44AD 0%, #9B59B6 100%) !important;
}
.woocommerce ul.products li.product:nth-child(3) img {
background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%) !important;
}
.woocommerce ul.products li.product:nth-child(4) img {
background: linear-gradient(135deg, #16A085 0%, #1ABC9C 100%) !important;
}
.woocommerce ul.products li.product:nth-child(5) img {
background: linear-gradient(135deg, #D35400 0%, #E67E22 100%) !important;
}
.woocommerce ul.products li.product:nth-child(6) img {
background: linear-gradient(135deg, #2980B9 0%, #3498DB 100%) !important;
}
.woocommerce ul.products li.product:nth-child(7) img {
background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%) !important;
}
.woocommerce ul.products li.product:nth-child(8) img {
background: linear-gradient(135deg, #E74C3C 0%, #EC7063 100%) !important;
}
/* 商品信息区域 */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
color: var(–color-gold) !important;
font-size: 18px !important;
font-weight: 600 !important;
padding: 15px 15px 10px !important;
margin: 0 !important;
}
.woocommerce ul.products li.product .price {
color: var(–color-white) !important;
font-size: 22px !important;
font-weight: 700 !important;
padding: 0 15px 15px !important;
}
.woocommerce ul.products li.product .price del {
color: var(–color-gray) !important;
opacity: 0.6;
}
.woocommerce ul.products li.product .price ins {
color: var(–color-gold) !important;
text-decoration: none;
}
/* 按钮样式 */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
background: var(–color-gold) !important;
color: var(–color-black) !important;
border: none !important;
padding: 12px 30px !important;
font-weight: 600 !important;
text-transform: uppercase;
letter-spacing: 1px;
transition: all 0.3s ease !important;
border-radius: 6px !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
background: var(–color-gold-light) !important;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
/* 添加到购物车按钮 */
.woocommerce ul.products li.product .button {
width: calc(100% – 30px) !important;
margin: 0 15px 15px !important;
}
/* 页面内容区域 */
.site-content {
background: transparent !important;
padding: 40px 20px !important;
}
/* 页脚 */
.site-footer {
background: rgba(0, 0, 0, 0.95) !important;
border-top: 2px solid var(–color-gold) !important;
color: var(–color-gray) !important;
padding: 40px 20px !important;
text-align: center;
}
/* 响应式优化 */
@media (max-width: 768px) {
.woocommerce ul.products {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
gap: 20px !important;
}
.entry-title {
font-size: 32px !important;
}
}
/* 加载动画 */
@keyframes shimmer {
0% { background-position: -1000px 0; }
100% { background-position: 1000px 0; }
}
.woocommerce ul.products li.product img {
animation: shimmer 3s infinite linear;
background-size: 1000px 100%;
}
Leave a comment