/* 文创商城页面专属样式 */
#wenchuang .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #ffffff;
    transform: none;
}
.page {
    display: none;
    padding: 30px;
}

.page.active {
    display: block;
}

/* 轮播图 */
.banner {
    width: 100%;
    height: 300px;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

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

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.banner-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 商品模块 */
.product-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.product-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(-8%);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--orange);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--red);
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    font-size: 12px;
    padding: 8px;
}

.package-carousel-section {
    margin-bottom: 40px;
}

.package-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px;
    background: transparent;
}

.carousel-item img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.carousel-item p {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.indicator.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.quality-report {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.report-table th,
.report-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.report-table th {
    background-color: #f8fff8;
    font-weight: 600;
    color: #333;
}

.report-table tbody tr:hover {
    background-color: #f9f9f9;
}

.result-pass {
    color: #4CAF50;
    font-weight: 600;
}

.result-value {
    color: #2196F3;
    font-weight: 600;
}

.logistics-info {
    margin-top: 10px;
}

.logistics-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.logistics-item:last-child {
    border-bottom: none;
}

.logistics-label {
    font-weight: 600;
    color: #333;
}

.logistics-value {
    color: #666;
}

/* 筛选区 */
.filter-section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px var(--shadow);
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item label {
    font-size: 14px;
    color: #666;
}

.filter-item select,
.filter-item input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 直播专区 */
.live-player {
    background-color: #000;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
}

.live-info {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px var(--shadow);
}

/* 订单页 */
.order-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-tab {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.order-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.order-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px var(--shadow);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-status {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.order-items {
    margin-bottom: 15px;
}

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

.order-item-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

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

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

.order-item-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.order-item-spec {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.order-item-price {
    font-size: 14px;
    color: var(--red);
    font-weight: bold;
}

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

.order-total {
    font-size: 16px;
    font-weight: bold;
}

.order-total-price {
    color: var(--red);
}

.order-actions {
    display: flex;
    gap: 10px;
}

/* 溯源查询页 */
.trace-query {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px var(--shadow);
    text-align: center;
}

.trace-input {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 20px;
}

.trace-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.trace-example {
    font-size: 12px;
    color: #666;
}

.trace-result {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 5px var(--shadow);
    display: none;
}

.trace-result.active {
    display: block;
}

.trace-card {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.trace-card h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.trace-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.trace-info-item {
    font-size: 14px;
}

.trace-info-label {
    color: #666;
    margin-right: 5px;
}

/* 购物车页 */
.cart-empty {
    background-color: var(--white);
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow);
}

.cart-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #666;
}

.cart-items {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px var(--shadow);
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    display: block !important;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    color: var(--red);
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

.cart-item-delete {
    color: var(--red);
    cursor: pointer;
    font-size: 14px;
}

.cart-total {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--red);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner {
        height: 200px;
    }

    .banner-content h2 {
        font-size: 20px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h3 {
        font-size: 18px;
    }

    .product-card {
        margin-bottom: 10px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-desc {
        font-size: 12px;
    }

    .product-actions {
        flex-direction: column;
        gap: 5px;
        pointer-events: auto;
    }

    .product-actions .btn {
        width: 100%;
        font-size: 11px;
        padding: 6px;
        pointer-events: auto;
    }

    .trace-query {
        padding: 15px;
    }

    .trace-input {
        flex-direction: column;
    }

    .trace-result {
        padding: 15px;
    }

    .trace-info {
        grid-template-columns: 1fr;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-actions {
        width: 100%;
        flex-direction: column;
    }

    .order-actions .btn {
        width: 100%;
    }

    .cart-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        pointer-events: auto;
    }

    .cart-total .btn {
        width: 100%;
        pointer-events: auto;
    }

    .page {
        padding: 10px;
        pointer-events: auto;
    }

    .filter-section {
        padding: 10px;
    }

    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .filter-item {
        width: 100%;
    }

    .filter-item select,
    .filter-item input {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    table th,
    table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .action-btn {
        padding: 4px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 5px;
    }

    .banner {
        height: 150px;
        border-radius: 4px;
    }

    .banner-content h2 {
        font-size: 16px;
    }

    .banner-content p {
        font-size: 12px;
    }

    .banner-content .btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .order-tabs {
        flex-direction: column;
    }

    .order-tab {
        text-align: center;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        display: block !important;
        width: 100px;
        height: 80px;
        flex-shrink: 0;
    }

    .cart-item-image img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .product-image {
        height: 120px;
    }

    .live-player {
        height: 200px;
    }

    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .package-carousel {
        max-width: 100%;
        border-radius: 8px;
        padding-bottom: 50px;
    }

    .carousel-item {
        padding: 10px;
        padding-bottom: 0;
    }

    .carousel-item img {
        max-height: 200px;
    }

    .carousel-item p {
        font-size: 14px;
        margin-bottom: 0;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}
