
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding-bottom: 70px;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    margin-bottom: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.header p {
    opacity: 0.9;
    margin: 5px 0 0;
}

.type-filters {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    margin: 0 -5px 15px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.type-filters::-webkit-scrollbar {
    display: none;
}

.type-filter {
    flex: 0 0 auto;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 20px;
    background-color: white;
    color: var(--dark-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.type-filter.active {
    background-color: var(--primary-color);
    color: white;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: #f0f2f5;
    position: relative;
}

.product-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.product-type.课程 { background-color: rgba(108, 92, 231, 0.8); }
.product-type.助手 { background-color: rgba(46, 204, 113, 0.8); }
.product-type.服务 { background-color: rgba(52, 152, 219, 0.8); }
.product-type.定制 { background-color: rgba(253, 121, 168, 0.8); }

.product-content {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

.product-price {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.product-price .currency {
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-buy {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-buy:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.footer .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.footer .nav-link.active {
    color: var(--primary-color);
}

.footer i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

@media (min-width: 768px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card {
        margin-bottom: 0;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}



:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    padding-bottom: 80px;
}

.product-header {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
    z-index: 1;
}

.product-header .content {
    position: relative;
    z-index: 2;
}

.product-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-header .type-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 20px;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0;
}

.price-tag .currency {
    font-size: 1rem;
    font-weight: 500;
    vertical-align: super;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1rem;
    margin-left: 10px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-content p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.description {
    line-height: 1.6;
    color: #495057;
}

.recommend-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 15px;
}

.recommend-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.recommend-img {
    height: 100px;
    background-size: cover;
    background-position: center;
}

.recommend-content {
    padding: 12px;
}

.recommend-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem;
}

.recommend-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
}

.swiper {
    padding: 5px 0 20px;
}

.swiper-slide {
    width: 160px;
    margin-right: 15px;
}

.buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 15px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.buy-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.buy-price .currency {
    font-size: 0.9rem;
    vertical-align: super;
}



.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 10px;
}

.btn-buy-now {
    background: linear-gradient(135deg, #08920f, #19ff00);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.description {
    line-height: 1.6;
    color: #495057;
    text-align: justify;
}

.card-header:first-child {
    border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
    font-size: 1.5em;
    margin-top: 20px;
}

        p {
            font-size: 18px !important;
        }