38283-vm/assets/css/custom.css
Flatlogic Bot 27341ce40d 商场
2026-02-08 11:51:31 +00:00

462 lines
9.9 KiB
CSS

:root {
--primary-color: #ff3399; /* Default pink */
--secondary-color: #ff66b2;
--accent-color: #0088cc;
--bg-light: #fff5f7;
--card-bg: #ffffff;
--glass-border: rgba(255, 51, 153, 0.1);
--text-dark: #1a202c;
--text-muted: #4a5568;
--mobile-primary: #e1251b;
--mobile-accent: #ff9900;
}
body {
background-color: var(--bg-light);
color: var(--text-dark);
font-family: 'Inter', sans-serif;
background-image:
radial-gradient(at 0% 0%, rgba(255, 0, 122, 0.05) 0px, transparent 50%),
radial-gradient(at 100% 100%, rgba(255, 51, 153, 0.05) 0px, transparent 50%);
background-attachment: fixed;
margin-bottom: 0;
}
.glass-card {
background: var(--card-bg);
border: 1px solid var(--glass-border);
border-radius: 1rem;
transition: all 0.3s ease;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.navbar {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--glass-border);
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar-brand {
font-weight: 800;
letter-spacing: -0.025em;
text-transform: uppercase;
color: var(--primary-color) !important;
}
.nav-link {
font-weight: 600;
font-size: 0.95rem;
color: var(--text-dark) !important;
transition: color 0.3s ease;
}
.nav-link:hover {
color: var(--primary-color) !important;
}
.btn-primary {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
border: none;
color: white !important;
font-weight: 700;
}
.btn-primary:hover {
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
transform: translateY(-2px);
box-shadow: 0 10px 20px rgba(255, 51, 153, 0.2);
}
.product-card {
overflow: hidden;
}
.product-card:hover {
transform: translateY(-5px);
border-color: var(--primary-color);
box-shadow: 0 10px 25px rgba(255, 51, 153, 0.1);
}
.product-img-container {
aspect-ratio: 1/1;
overflow: hidden;
border-radius: 0.75rem;
position: relative;
background: #f8fafc;
}
.product-img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 15px;
transition: transform 0.5s ease;
}
.product-card:hover .product-img {
transform: scale(1.1);
}
.badge-hot {
position: absolute;
top: 10px;
right: 10px;
background: var(--primary-color);
color: white !important;
font-size: 0.7rem;
font-weight: 800;
padding: 4px 8px;
border-radius: 4px;
z-index: 2;
}
.price-tag {
font-size: 1.25rem;
font-weight: 800;
color: var(--primary-color);
}
.footer-link {
color: var(--text-muted);
text-decoration: none;
transition: all 0.3s ease;
display: block;
margin-bottom: 0.5rem;
}
.footer-link:hover {
color: var(--primary-color);
padding-left: 5px;
}
/* Carousel Custom Styles */
.carousel-inner {
height: 500px !important;
border-radius: 1rem; /* Slightly reduced for better fill */
}
@media (max-width: 768px) {
.carousel-inner {
height: 250px !important; /* Slightly taller for mobile */
}
}
.carousel-section {
margin-top: 60px; /* Increased to move down further as requested */
padding: 0; /* Remove side padding to fill the area fully */
}
.carousel-item {
height: 100% !important;
transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.carousel-bg {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
padding: 40px 20px;
}
/* Personalised Carousel Fonts */
.carousel-title {
font-family: 'Inter', sans-serif;
font-weight: 800;
text-shadow: 0 2px 10px rgba(0,0,0,0.1);
color: #1a1a1a !important;
margin-top: 20px;
}
.carousel-subtitle {
font-weight: 500;
color: #4a4a4a !important;
background: rgba(255,255,255,0.85);
display: inline-block;
padding: 6px 20px;
border-radius: 20px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
/* Category Improvements */
.category-item {
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.category-item:hover {
transform: translateY(-8px);
}
.category-icon-wrapper {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #ffffff 0%, #fff0f5 100%);
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 10px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 51, 153, 0.1);
}
.category-item:hover .category-icon-wrapper {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white !important;
box-shadow: 0 10px 25px rgba(255, 51, 153, 0.2);
border-color: transparent;
}
.category-item:hover .category-icon-wrapper i {
color: white !important;
transform: scale(1.1);
}
.category-icon-wrapper i {
font-size: 1.5rem;
color: var(--primary-color);
z-index: 1;
transition: all 0.3s ease;
}
.category-name {
font-size: 0.85rem;
font-weight: 700;
color: #1a202c !important; /* Fixed contrast */
}
/* Contrast Fixes */
.text-dark { color: #1a202c !important; }
.text-secondary { color: #2d3748 !important; }
.text-muted { color: #4a5568 !important; }
/* Ensure text on white/light backgrounds is visible */
.bg-light .text-muted { color: #4a5568 !important; }
/* Accordion Specific Contrast */
.accordion-button:not(.collapsed) {
background-color: rgba(255, 51, 153, 0.05) !important;
color: var(--primary-color) !important;
}
.accordion-button:after {
filter: brightness(0.5);
}
.floating-tg {
position: fixed;
bottom: 30px;
right: 30px;
z-index: 1000;
width: 60px;
height: 60px;
background: #0088cc;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 30px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: all 0.3s ease;
text-decoration: none;
}
@media (max-width: 768px) {
.floating-tg {
bottom: 80px;
right: 20px;
width: 50px;
height: 50px;
font-size: 24px;
}
.carousel-section {
margin-top: 30px;
padding: 0;
}
.category-icon-wrapper {
width: 55px;
height: 55px;
border-radius: 18px;
}
}
.floating-tg:hover {
transform: scale(1.1) rotate(10deg);
color: white;
}
/* Scrolling Announcement */
.announcement-container {
overflow: hidden;
white-space: nowrap;
position: relative;
}
.announcement-content {
display: inline-block;
padding-left: 100%;
animation: marquee 25s linear infinite;
}
@keyframes marquee {
0% { transform: translate(0, 0); }
100% { transform: translate(-100%, 0); }
}
/* --- MOBILE JD/TAOBAO STYLE --- */
@media (max-width: 768px) {
:root {
--primary-color: var(--mobile-primary);
--accent-color: var(--mobile-accent);
--bg-light: #f4f4f4;
}
body {
background-image: none;
padding-bottom: 60px;
}
.pc-only { display: none !important; }
.navbar {
background: var(--primary-color);
padding: 10px 15px !important;
}
.navbar-brand {
color: #ffffff !important;
}
.mobile-search-bar {
background: #ffffff;
border-radius: 20px;
padding: 5px 15px;
display: flex;
align-items: center;
margin-top: 10px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.mobile-search-bar input {
border: none;
outline: none;
width: 100%;
margin-left: 10px;
font-size: 0.9rem;
}
/* Bottom Navigation */
.mobile-bottom-nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #ffffff;
display: flex;
justify-content: space-around;
padding: 8px 0;
box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
z-index: 1050;
}
.mobile-nav-item {
text-align: center;
color: #666;
text-decoration: none;
font-size: 0.7rem;
display: flex;
flex-direction: column;
align-items: center;
}
.mobile-nav-item i {
font-size: 1.4rem;
margin-bottom: 2px;
}
.mobile-nav-item.active {
color: var(--primary-color);
}
/* Product Grid Taobao Style */
.product-grid-mobile {
display: flex;
flex-wrap: wrap;
padding: 5px;
}
.product-item-mobile {
width: 50%;
padding: 5px;
}
.product-card-mobile {
background: #fff;
border-radius: 8px;
overflow: hidden;
height: 100%;
display: flex;
flex-direction: column;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.product-img-mobile {
width: 100%;
aspect-ratio: 1/1;
object-fit: contain;
background: #f8f8f8;
padding: 10px;
}
.product-info-mobile {
padding: 8px;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.product-title-mobile {
font-size: 0.85rem;
color: #333;
margin-bottom: 5px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
height: 2.4rem;
line-height: 1.2rem;
}
.product-price-mobile {
color: var(--primary-color);
font-weight: bold;
font-size: 1.1rem;
margin-top: auto;
}
.product-tag-mobile {
background: var(--primary-color);
color: #fff;
font-size: 0.6rem;
padding: 1px 4px;
border-radius: 3px;
margin-right: 4px;
}
/* Buttons */
.btn-primary {
background: var(--primary-color);
border-radius: 20px;
}
}