/* PC端商城前台样式 */

/* 全局变量 */
:root {
    --view-theme: #ff3366;
    --view-minorColor: #ff99bb;
    --view-priceColor: #ff3366;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

a:hover {
    color: var(--view-theme);
}

img {
    vertical-align: middle;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.pc-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-top-left .logo img {
    width: 150px;
}

.header-top-center {
    flex: 1;
    max-width: 600px;
    margin: 0 50px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 15px;
    border: 2px solid var(--view-theme);
    border-radius: 20px;
    font-size: 14px;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--view-theme);
    border: none;
    border-radius: 0 20px 20px 0;
    color: #fff;
    cursor: pointer;
}

.header-top-right {
    display: flex;
    align-items: center;
}

.header-top-right a {
    display: flex;
    align-items: center;
    margin-left: 30px;
    font-size: 14px;
}

.header-top-right i {
    font-size: 18px;
    margin-right: 5px;
}

/* 导航样式 */
.header-nav {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-list {
    display: flex;
}

.nav-item {
    display: block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    position: relative;
}

.nav-item:hover {
    color: var(--view-theme);
}

.nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--view-theme);
}

/* 主内容区样式 */
.pc-main {
    padding: 20px 0;
}

/* 轮播图样式 */
.banner {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.banner-slider {
    position: relative;
    height: 400px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-dot {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.swiper-dot .dot {
    width: 20px;
    height: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-dot .dot.active {
    width: 20px;
    border-radius: 5px;
    background: #fff !important;
}

/* 商品分类样式 */
.cate-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.index-wrapper .title {
    padding-top: 20px;
    margin: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.index-wrapper .title .text {
    font-size: 24px;
    color: #999;
}

.index-wrapper .title .text .iconfont {
    font-size: 36px;
    color: var(--view-theme);
    margin-top: 4px;
    margin-right: 12px;
    font-style: normal;
    font-weight: normal;
}

.index-wrapper .title .text .name {
    color: #282828;
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 5px;
    position: relative;
    display: flex;
    align-items: center;
}

.index-wrapper .title .more {
    font-size: 24px;
    color: #999999 !important;
}

.index-wrapper .title .more .iconfont {
    margin-left: 9rpx;
    font-size: 26px;
}

.cate-list {
    display: flex;
    justify-content: space-between;
}

.cate-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cate-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cate-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.cate-item span {
    display: block;
    font-size: 14px;
    color: #333;
}

/* 热门商品样式 */
.hot-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.goods-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.goods-item {
    width: 23%;
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.goods-item:hover {
    border-color: var(--view-theme);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.goods-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.goods-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.goods-item:hover .goods-img img {
    transform: scale(1.1);
}

.pictrue_log {
    width: 80px;
    height: 40px;
    border-radius: 20px 0 20px 0;
    line-height: 40px;
    font-size: 24px;
}

.pictrue_log_class {
    background-color: var(--view-theme);
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    text-align: center;
    z-index: 3;
}

.goods-info {
    padding: 15px;
}

.goods-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.goods-desc {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.goods-price {
    display: flex;
    align-items: baseline;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: var(--view-priceColor);
    margin-right: 10px;
}

.original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* 活动区域样式 */
.activity-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.activity-list {
    display: flex;
    justify-content: space-between;
}

.activity-item {
    width: 32%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.activity-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.activity-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.activity-info p {
    font-size: 12px;
}

/* 底部样式 */
.pc-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-item {
    width: 23%;
}

.footer-item h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-item ul li {
    margin-bottom: 10px;
}

.footer-item ul li a {
    color: #999;
    font-size: 14px;
}

.footer-item ul li a:hover {
    color: var(--view-theme);
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.qrcode p {
    font-size: 12px;
    color: #999;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #999;
}

/* 商品分类页面样式 */
.cate-page {
    display: flex;
}

.cate-sidebar {
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    padding: 20px;
}

.cate-sidebar h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

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

.cate-sidebar ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cate-sidebar ul li a:hover {
    background-color: #f9f9f9;
    color: var(--view-theme);
}

.cate-content {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 商品详情页面样式 */
.goods-detail {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.goods-detail-left {
    width: 500px;
    margin-right: 40px;
}

.goods-detail-right {
    flex: 1;
}

.goods-detail-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.goods-detail-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--view-priceColor);
    margin-bottom: 20px;
}

.goods-detail-info {
    margin-bottom: 20px;
}

.goods-detail-info p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.goods-detail-btn {
    display: flex;
    margin-top: 30px;
}

.goods-detail-btn .btn {
    margin-right: 15px;
    padding: 12px 30px;
    font-size: 16px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.goods-detail-btn .btn:hover {
    border-color: var(--view-theme);
    color: var(--view-theme);
}

.goods-detail-btn .btn-primary {
    background-color: var(--view-theme);
    border-color: var(--view-theme);
    color: #fff;
}

.goods-detail-btn .btn-primary:hover {
    background-color: #ff1a53;
    border-color: #ff1a53;
    color: #fff;
}

/* 购物车页面样式 */
.cart-page {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table th {
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}

.cart-table .cart-goods-info {
    display: flex;
    align-items: center;
    text-align: left;
}

.cart-table .cart-goods-info img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.cart-table .cart-goods-info .goods-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.cart-table .cart-goods-info .goods-spec {
    font-size: 12px;
    color: #999;
}

.cart-table .cart-goods-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--view-priceColor);
}

.cart-table .cart-goods-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-table .cart-goods-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
}

.cart-table .cart-goods-quantity input {
    width: 50px;
    height: 30px;
    border: 1px solid #ddd;
    text-align: center;
    margin: 0 5px;
}

.cart-table .cart-goods-total {
    font-size: 16px;
    font-weight: bold;
    color: var(--view-priceColor);
}

.cart-table .cart-goods-action a {
    color: #999;
    margin-right: 10px;
}

.cart-table .cart-goods-action a:hover {
    color: var(--view-theme);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.cart-footer-left {
    display: flex;
    align-items: center;
}

.cart-footer-left input {
    margin-right: 10px;
}

.cart-footer-right {
    display: flex;
    align-items: center;
}

.cart-footer-right .cart-total {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-right: 20px;
}

.cart-footer-right .cart-total-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--view-priceColor);
    margin-right: 30px;
}

/* 订单页面样式 */
.order-page {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.order-filter {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.order-filter-item {
    margin-right: 30px;
    cursor: pointer;
    padding-bottom: 10px;
    position: relative;
}

.order-filter-item.active {
    color: var(--view-theme);
    font-weight: bold;
}

.order-filter-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--view-theme);
}

.order-list {
    margin-top: 20px;
}

.order-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background-color: #f9f9f9;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-body {
    padding: 20px;
}

.order-goods {
    display: flex;
    margin-bottom: 15px;
}

.order-goods img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.order-goods-info {
    flex: 1;
}

.order-goods-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.order-goods-spec {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.order-goods-price {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.order-goods-quantity {
    font-size: 14px;
    color: #999;
}

.order-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 14px;
    color: #333;
}

.order-total-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--view-priceColor);
    margin-left: 10px;
}

.order-action {
    display: flex;
}

.order-action .btn {
    margin-left: 10px;
    padding: 5px 15px;
    font-size: 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-action .btn:hover {
    border-color: var(--view-theme);
    color: var(--view-theme);
}

/* 个人中心页面样式 */
.user-page {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.user-sidebar {
    width: 200px;
    margin-right: 40px;
}

.user-sidebar h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

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

.user-sidebar ul li a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.user-sidebar ul li a:hover {
    background-color: #f9f9f9;
    color: var(--view-theme);
}

.user-sidebar ul li a.active {
    background-color: #f9f9f9;
    color: var(--view-theme);
    font-weight: bold;
}

.user-content {
    flex: 1;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 30px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.user-info p {
    font-size: 14px;
    color: #999;
    margin-bottom: 5px;
}

.user-stats {
    display: flex;
    margin-top: 15px;
}

.user-stat-item {
    margin-right: 30px;
    text-align: center;
}

.user-stat-item span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--view-theme);
    margin-bottom: 5px;
}

.user-stat-item p {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
    }

    .header-top-center {
        order: 3;
        width: 100%;
        margin: 20px 0;
    }

    .goods-item {
        width: 31%;
    }

    .activity-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-top {
        flex-wrap: wrap;
    }

    .footer-item {
        width: 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-list {
        overflow-x: auto;
    }

    .nav-item {
        white-space: nowrap;
    }

    .banner-slider {
        height: 300px;
    }

    .cate-list {
        flex-wrap: wrap;
    }

    .cate-item {
        width: 31%;
        margin-bottom: 20px;
    }

    .goods-item {
        width: 48%;
    }

    .goods-detail {
        flex-wrap: wrap;
    }

    .goods-detail-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .user-page {
        flex-wrap: wrap;
    }

    .user-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .user-sidebar ul {
        display: flex;
        overflow-x: auto;
    }

    .user-sidebar ul li {
        margin-right: 10px;
        margin-bottom: 0;
    }
}

/* 登录页面样式 */
.login-page {
    padding: 50px 0;
    background-color: #f5f5f5;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--view-theme);
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.login-tab.active {
    color: var(--view-theme);
    border-bottom-color: var(--view-theme);
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--view-theme);
    box-shadow: 0 0 0 2px rgba(255, 73, 73, 0.1);
}

.form-code {
    display: flex;
    gap: 10px;
}

.form-code .form-control {
    flex: 1;
}

.form-code img {
    width: 100px;
    height: 44px;
    cursor: pointer;
    border-radius: 4px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-link {
    color: var(--view-theme);
    text-decoration: none;
    font-size: 14px;
}

.form-link:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--view-theme);
    color: #fff;
}

.btn-primary:hover {
    background-color: #ff5a5a;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.wechat-qrcode {
    text-align: center;
}

.qrcode-container {
    margin-bottom: 20px;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
}

.qrcode-tip {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.qrcode-status {
    font-size: 14px;
    color: var(--view-theme);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
}