/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #fff;
    color: #333;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 布局容器 */
.container {
    width: 1200px;
    margin: 0 auto;
    max-width: 98%;
}

/* 顶部 Header */
.top-header {
    padding: 20px 0;
    background: #f8f8f8;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    font-weight: normal;
    border: 1px solid #ddd;
    padding: 10px 20px;
    background: #fff;
    font-family: 'Times New Roman', serif;
}

.search-box {
    display: flex;
    gap: 0;
}

.search-box input {
    padding: 8px;
    border: 1px solid #ccc;
    width: 300px;
    outline: none;
}

.search-btn, .img-search-btn {
    padding: 8px 15px;
    border: 1px solid #ccc;
    border-left: none;
    background: #666;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.img-search-btn {
    background: #eee;
    color: #333;
}

.search-btn:hover { background: #444; }

/* 导航栏 */
.main-nav {
    background-color: #888;
    color: white;
    padding: 10px 0;
}

.main-nav ul {
    display: flex;
    gap: 1px;
    justify-content: flex-start;
}

.main-nav ul li a {
    padding: 0 15px;
    border-right: 1px solid #aaa;
    font-size: 13px;
    display: block;
}

.main-nav ul li:last-child a {
    border-right: none;
}

.main-nav ul li a:hover {
    color: #ddd;
}

/* Banner */
.hero-banner img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

/* 主布局: Flexbox */
.main-layout {
    display: flex;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* 侧边栏 */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid #eee; /* 可选 */
}

.sidebar-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    color: #333;
    font-size: 13px;
    display: block;
    padding: 2px 0;
}

.sidebar-menu li a:hover {
    color: #888;
    padding-left: 5px;
    transition: 0.2s;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    margin-right: 10px;
    color: #333;
    font-size: 16px;
}

.contact-email {
    font-size: 12px;
    color: #555;
    margin-bottom: 20px;
}

.qr-code img {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
}

/* 产品内容区 */
.product-content {
    flex: 1;
    padding-left: 20px;
}

.category-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 5px;
}

.section-header h2 {
    font-size: 14px;
    font-weight: normal;
    color: #555;
}

.section-header .more-link {
    position: absolute;
    right: 10px;
    font-size: 12px;
    color: #888;
}

/* 产品网格: 5列 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.product-card {
    background: #fff;
    text-align: center;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.img-wrapper {
    background: #eee;
    margin-bottom: 10px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-name {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 底部 */
.main-footer {
    background: #888;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
    margin-top: 20px;
}


.lt-visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.lt-message-form{margin-top:24px;padding:16px;border:1px solid #ddd;border-radius:8px;background:#fff;}
.lt-message-form input,.lt-message-form textarea{width:100%;max-width:520px;padding:10px;border:1px solid #ccc;border-radius:6px;}
.lt-message-success{padding:10px;border:1px solid #b6e3b6;background:#eef9ee;border-radius:6px;}
.lt-message-error{padding:10px;border:1px solid #f0b4b4;background:#fff0f0;border-radius:6px;}
