* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Microsoft Yahei", PingFangSC-Regular, "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif;}
:root {
--emerson-blue: #005eb8;
--emerson-dark: #003c7e;
--emerson-light: #e6f0fa;
--text-dark: #333;
--text-light: #666;
--border: #ddd;
--white: #fff;
--gray: #f5f7fa;
--light-gray: #f9f9f9;
--transition: all 0.3s ease;
}
body {
color: var(--text-dark);
line-height: 1.6;
background-color: var(--white);
}
a {
color: #333;
text-decoration: none;
}
a:hover {
color:#18506D;
}
.container {
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header Styles */
header {
background-color: var(--white);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: sticky;
top: 0;
z-index: 100;
}
.top-bar {
background-color: var(--emerson-dark);
color: var(--white);
padding: 8px 0;
font-size: 14px;
}
.top-bar-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.contact-info span {
margin-right: 20px;
}
.language-selector select {
background: transparent;
border: none;
color: var(--white);
font-size: 14px;
}
.main-header {
padding: 15px 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
}
.logo img {
height: 40px;
}
.logo h2 {
margin-left: 10px;
font-size: 24px;
color: var(--emerson-blue);
font-weight: 600;
}
nav ul {
display: flex;
list-style: none;
}
nav ul li {
margin-left: 25px;
position: relative;
}
nav ul li a {
text-decoration: none;
color: var(--text-dark);
font-weight: 500;
font-size: 16px;
padding: 8px 5px;
transition: color 0.3s;
}
nav ul li a:hover {
color: var(--emerson-blue);
}
nav ul li a.active {
color: var(--emerson-blue);
border-bottom: 3px solid var(--emerson-blue);
}
.search-icon {
margin-left: 20px;
color: var(--emerson-blue);
cursor: pointer;
}
/* Breadcrumb */
.breadcrumb {
padding: 15px 0;
background-color: var(--light-gray);
margin-bottom: 30px;
border-bottom: 1px solid var(--border);
}
.breadcrumb ul {
display: flex;
list-style: none;
}
.breadcrumb ul li {
margin-right: 10px;
font-size: 14px;
}
.breadcrumb ul li:not(:last-child):after {
content: '>';
margin-left: 10px;
color: var(--text-light);
}
.breadcrumb a {
color: var(--emerson-blue);
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
/* Page Header */
.page-header {
padding: 30px 0;
text-align: center;
background: linear-gradient(to right, var(--emerson-light), var(--white));
}
.page-header h1 {
font-size: 2.5rem;
color: var(--emerson-dark);
margin-bottom: 15px;
}
.page-header p {
color: var(--text-light);
max-width: 700px;
margin: 0 auto;
}
/* Product Layout */
.product-layout {
display: grid;
grid-template-columns: 250px 1fr;
gap: 30px;
padding: 30px 0 60px;
}
/* Sidebar */
.sidebar {
background: var(--white);
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
padding: 20px;
height: fit-content;
}
.sidebar-section {
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border);
}
.sidebar-section:last-child {
margin-bottom: 0;
padding-bottom: 0;
border-bottom: none;
}
.sidebar-section h3 {
color: var(--emerson-dark);
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 2px solid var(--emerson-blue);
}
.category-list {
list-style: none;
}
.category-list li {
margin-bottom: 10px;
}
.category-list a {
color: var(--text-dark);
text-decoration: none;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
transition: var(--transition);
}
.category-list a:hover {
color: var(--emerson-blue);
}
.category-list a.active {
color: var(--emerson-blue);
font-weight: 600;
}
.category-list .count {
background: var(--emerson-light);
color: var(--emerson-dark);
padding: 2px 8px;
border-radius: 12px;
font-size: 12px;
}
.filter-group {
margin-bottom: 15px;
}
.filter-group h4 {
margin-bottom: 10px;
color: var(--text-dark);
}
.filter-options {
list-style: none;
}
.filter-options li {
margin-bottom: 8px;
}
.filter-options label {
display: flex;
align-items: center;
cursor: pointer;
}
.filter-options input[type="checkbox"] {
margin-right: 10px;
width: 16px;
height: 16px;
}
.filter-btn {
background: var(--emerson-blue);
color: var(--white);
border: none;
padding: 10px 15px;
width: 100%;
border-radius: 4px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
margin-top: 10px;
}
.filter-btn:hover {
background: var(--emerson-dark);
}
/* Product Grid */
.product-grid-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
}
.sorting-options {
display: flex;
align-items: center;
}
.sorting-options label {
margin-right: 10px;
color: var(--text-light);
}
.sorting-options select {
padding: 8px 12px;
border: 1px solid var(--border);
border-radius: 4px;
}
.view-options {
display: flex;
gap: 10px;
}
.view-btn {
background: var(--light-gray);
border: 1px solid var(--border);
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
cursor: pointer;
transition: var(--transition);
}
.view-btn.active, .view-btn:hover {
background: var(--emerson-blue);
color: var(--white);
}
.products-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 25px;
}
.product-card {
background: var(--white);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
transition: all 0.3s;
position: relative;
}
.product-card:hover {
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
transform: translateY(-5px);
}
.product-badge {
position: absolute;
top: 10px;
left: 10px;
background: var(--emerson-blue);
color: var(--white);
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
z-index: 2;
}
.product-image {
height: 180px;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--emerson-light);
position: relative;
overflow: hidden;
}
.product-image img {
max-width: 80%;
max-height: 80%;
transition: transform 0.5s;
}
.product-card:hover .product-image img {
transform: scale(1.1);
}
.product-content {
padding: 20px;
}
.product-category {
color: var(--emerson-blue);
font-size: 12px;
text-transform: uppercase;
margin-bottom: 5px;
}
.product-title {
color: var(--emerson-dark);
margin-bottom: 10px;
font-size: 14px;
min-height: 44px;
}
.product-specs {
list-style-type: none;
margin: 15px 0;
font-size: 14px;
}
.product-specs li {
padding: 5px 0;
display: flex;
align-items: center;
}
.product-specs li:before {
content: "?";
color: var(--emerson-blue);
margin-right: 10px;
font-weight: bold;
}
.product-meta {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 15px;
}
.product-price {
font-weight: 600;
color: var(--emerson-dark);
}
.product-actions {
display: flex;
gap: 10px;
}
.action-btn {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: var(--light-gray);
border: 1px solid var(--border);
border-radius: 4px;
cursor: pointer;
transition: var(--transition);
}
.action-btn:hover {
background: var(--emerson-blue);
color: var(--white);
}
/* Featured Product */
.featured-product {
grid-column: 1 / -1;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 30px;
background: var(--white);
border-radius: 8px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}
.featured-image {
height: 300px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, var(--emerson-light), var(--white));
}
.featured-image img {
max-width: 80%;
max-height: 80%;
}
.featured-content {
padding: 30px;
display: flex;
flex-direction: column;
justify-content: center;
}
.featured-badge {
background: var(--emerson-blue);
color: var(--white);
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
display: inline-block;
margin-bottom: 15px;
}
.featured-content h2 {
color: var(--emerson-dark);
margin-bottom: 15px;
font-size: 1.8rem;
}
.featured-specs {
margin: 20px 0;
}
.featured-specs li {
margin-bottom: 10px;
display: flex;
}
.featured-specs li:before {
content: "?";
color: var(--emerson-blue);
margin-right: 10px;
font-weight: bold;
}
.featured-actions {
display: flex;
gap: 15px;
margin-top: 20px;
}
/* Pagination */
.pagination {
display: flex;
justify-content: center;
margin-top: 40px;
gap: 5px;
}
.page-item {
display: inline-block;
}
.page-link {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid var(--border);
border-radius: 4px;
text-decoration: none;
color: var(--text-dark);
transition: var(--transition);
}
.page-link:hover, .page-link.active {
background: var(--emerson-blue);
color: var(--white);
border-color: var(--emerson-blue);
}
.page-link.disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Footer */
footer {
background-color: var(--emerson-dark);
color: var(--white);
padding: 60px 0 20px;
}
.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 40px;
margin-bottom: 40px;
}
.footer-column h3 {
font-size: 1.3rem;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.footer-column h3:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background-color: var(--emerson-blue);
}
.footer-column ul {
list-style: none;
}
.footer-column ul li {
margin-bottom: 10px;
}
.footer-column ul li a {
color: #ccc;
text-decoration: none;
transition: color 0.3s;
}
.footer-column ul li a:hover {
color: var(--white);
}
.social-icons {
display: flex;
gap: 15px;
margin-top: 20px;
}
.social-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
background-color: rgba(255, 255, 255, 0.1);
border-radius: 50%;
color: var(--white);
transition: background-color 0.3s;
}
.social-icons a:hover {
background-color: var(--emerson-blue);
transform: translateY(-3px);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 20px;
text-align: center;
color: #aaa;
font-size: 14px;
}
/* 分页样式 */
.fanye { clear: both;padding: 20px 0 0; font-size: 14px;text-align: center; overflow: hidden;text-indent: 0em;}
.fanye > span { margin: auto 16px; }
.fanye .page-numbar { margin: auto 0; }
.fanye .page-numbar .page-num,
.fanye .page-index,
.fanye .page-pre,
.fanye .page-next,
.fanye .page-last { display: inline-block; margin: auto 4px; padding: 4px 15px; /*border: 1px solid #EEE; */border-radius: 2px; }
.fanye .page-numbar .page-num-current,
.fanye .page-numbar .page-num:hover { border-color:#18506D; background:#3a4e71; color: #fff; }
.page-status {display:none;}
/* Responsive Styles */
@media (max-width: 992px) {
.product-layout {
grid-template-columns: 1fr;
}
.sidebar {
max-width: 100%;
}
.featured-product {
grid-template-columns: 1fr;
}
.featured-image {
height: 200px;
}
}
@media (max-width: 768px) {
.main-header {
flex-direction: column;
padding: 15px 0;
}
nav ul {
margin-top: 20px;
flex-wrap: wrap;
justify-content: center;
}
nav ul li {
margin: 5px 10px;
}
.product-grid-header {
flex-direction: column;
align-items: flex-start;
gap: 15px;
}
.pages a {
font-size: 12px;
line-height: 30px;
padding: 0 12px;
}
.page-status {
display:none;
}
.page-numbar {
display:none;
}
}