/* ============================================
   优品商城 - 仿0769rj风格（单一导航栏）
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
    background: #f8f9fc;
    color: #2c3e50;
    line-height: 1.5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 头部单一导航栏 */
.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo img {
    height: 42px;
}
.main-nav {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}
.main-nav a {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    transition: color 0.2s;
}
.main-nav a:hover {
    color: #35C4B8;
}
.kefu-btn {
    background: #35C4B8;
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
}
.kefu-btn:hover {
    background: #2a9d92;
}
/* 轮播图 */
.banner-swiper {
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
/* 公告栏 */
.notice-section {
    background: #fef5e7;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    margin: 20px 0;
    color: #e67e22;
    font-weight: 500;
}
/* 内容区块头部 */
.section-wrapper {
    margin-bottom: 40px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    padding-bottom: 10px;
}
.section-header .title {
    font-size: 22px;
    font-weight: 600;
    color: #F60;
}
.section-header .title i {
    margin-right: 8px;
}
.section-header .more a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}
.section-header .more a:hover {
    color: #35C4B8;
}
/* 商品网格（左图右文） */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.product-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.card-image {
    width: 200px;
    flex-shrink: 0;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}
.product-card:hover .card-image img {
    transform: scale(1.02);
}
.card-content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-title a {
    color: #2c3e50;
    text-decoration: none;
}
.product-title a:hover {
    color: #35C4B8;
}
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 8px;
}
.original-price {
    font-size: 0.8rem;
    color: #95a5a6;
    text-decoration: line-through;
    margin-left: 8px;
}
.hot-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e67e22;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}
.card-image {
    position: relative;
}
.quick-add {
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #35C4B8;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}
.quick-add:hover {
    background: #35C4B8;
    color: #fff;
    border-color: #35C4B8;
}
/* 页脚 */
.footer {
    background: #333;
    color: #eee;
    padding: 30px 0 20px;
    margin-top: 60px;
    font-size: 13px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer .copyright a {
    color: #ddd;
    text-decoration: none;
}
.footer .copyright a:hover {
    color: #35C4B8;
}
.footer .qr-code img {
    width: 70px;
    height: 70px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-card {
        flex-direction: column;
    }
    .card-image {
        width: 100%;
        padding-top: 75%;
        position: relative;
    }
    .card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .main-nav {
        display: none;
    }
    .section-header .title {
        font-size: 18px;
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}


/* 底部样式 */
.footer {
    background: #1e2a3a;
    color: #cbd5e1;
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 14px;
}
.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-col {
    flex: 1;
    min-width: 200px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 500;
}
.footer-col p {
    line-height: 1.6;
    margin-bottom: 8px;
}
.wechat-qrcode {
    text-align: center;
}
.wechat-qrcode img {
    max-width: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.wechat-qrcode img:hover {
    transform: scale(0.62);
}
.wechat-qrcode p {
    margin-top: 8px;
    font-size: 12px;
}
.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #2d3e4e;
    font-size: 0.8rem;
}
.copyright a {
    color: #cbd5e1;
    text-decoration: none;
}
.copyright a:hover {
    color: #35C4B8;
}
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-col {
        min-width: auto;
    }
    .wechat-qrcode img {
        max-width: 100px;
    }
}

/* 右侧边栏二维码卡片 */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    text-align: center;
}
.sidebar-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.sidebar-card .wechat-qrcode img {
    max-width: 100%;
    border-radius: 8px;
}
.sidebar-card .wechat-qrcode p {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}
@media (max-width: 992px) {
    .sidebar-card {
        margin-top: 30px;
    }
}

/* 底部布局调整：前两个区域靠左，二维码靠右 */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
/* 第三个区域（二维码）靠右 */
.footer-col:last-child {
    margin-left: auto;
    text-align: right;
}
/* 移动端时重置为居中 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col:last-child {
        margin-left: 0;
        text-align: center;
    }
}


/* 底部 footer 布局调整：将第一个板块（关于我们）移动到右侧 */
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}
/* 默认所有板块正常顺序 */
.footer-col {
    flex: 1;
}
/* 将第一个板块（关于我们）排到最后（右侧） */
.footer-col:first-child {
    order: 3;
}
/* 第二个板块（联系方式）排在中间 */
.footer-col:nth-child(2) {
    order: 2;
}
/* 第三个板块（二维码）排在最左侧 */
.footer-col:last-child {
    order: 1;
}
/* 移动端时恢复自然顺序，避免混乱 */
@media (max-width: 768px) {
    .footer-col {
        order: 0 !important;
        flex: auto;
        text-align: center;
    }
}