/* manquxingqiu/assets/css/pages/order.css */
/* order.css */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: #E6EDE3;
}

.header {
    position: relative;
    height: 50px;
    background: linear-gradient(-45deg, #23a6d5, #23d5ab);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-title {
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.switch-container {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    padding: 6px 15px;
    border-radius: 15px;
    background: white;
    color: #666;
    gap: 4px; /* 增加文字与图标间距 */
}


.arrow-group {
    position: relative;
    width: 16px;
    height: 18px;

}
/* 新增/修改样式 */
.double-arrow {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-left: 8px;
    width: 14px;
}

.arrow-line {
    width: 16px;
    height: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.top {
    transform: translateX(0);
}

.bottom {
    transform: translateX(-4px);
}

/* 团员版状态 */
.member-version-active .top {
    transform: translateX(0px);
}

.member-version-active .bottom {
    transform: translateX(4px);
}

/* 团长版状态 */
.leader-version-active .top {
    transform: translateX(-4px);
}

.leader-version-active .bottom {
    transform: translateX(0px);
}



.switch-icon {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    fill: currentColor;
}

.content {
    padding: 20px 15px;
    display: none;
}

.content.active {
    display: block;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.leader-version .button-grid {
    grid-template-columns: repeat(3, 1fr);
}

.function-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-decoration: none;
    transition: transform 0.2s;
}

.function-btn:active {
    transform: scale(0.98);
}

.function-btn img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.function-btn span {
    font-size: 18px;
    color: #333;
}

@media (max-width: 375px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .leader-version .button-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .function-btn {
        height: 100px;
    }
}
/* order.css 新增内容 */
.order-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.order-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 14px;
    border: none;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.order-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.status-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-tag {
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 16px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .order-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        padding: 12px;
        font-size: 13px;
    }
    
    .order-card {
        margin-bottom: 12px;
    }
}







######
.order-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 24px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    gap: 1px;
}


.nav-btn {
    padding: 14px 12px;
    position: relative;
    border: none;
    background: white;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}


.nav-btn.active {
    background: #23d5ab;
    color: white;
    font-weight: 500;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
}

.order-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.group-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* 修复图标位置 */


.status-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.status-icon path {
    fill: currentColor;
}

/* 调整状态标签位置 */
.status-tag {
    top: 15px;
    right: 15px;
    font-size: 12px;
    padding: 3px 10px;
}

.product-name {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-detail {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.total-price {
    color: #ff4757;
    font-size: 1.1rem;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

@media (max-width: 480px) {
    .order-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .order-card {
        padding: 16px;
    }
}

/* orders.css 修改 */



.nav-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.order-card {
    position: relative;
    padding: 20px;
    transition: transform 0.2s;
}

.order-card:hover {
    transform: translateY(-2px);
}

.status-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* 新增状态标签样式 */
.status-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
}

.pending-tag {
    background: #fff3cd;
    color: #856404;
}

.placed-tag {
    background: #d4edda;
    color: #155724;
}

.shipped-tag {
    background: #d1ecf1;
    color: #0c5460;
}



@media (max-width: 480px) {
    .order-nav {
        grid-template-columns: 1fr;
    }
    
    .status-tag {
        top: 10px;
        right: 10px;
    }
}


/* 订单商品列表样式 */
.order-items {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-item:last-child {
    margin-bottom: 0;
}

.product-name {
    font-weight: 500;
    color: var(--text-primary);
}

.product-detail {
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
}

.order-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.order-items {
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.order-item {
    padding: 8px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-detail {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

.order-date {
    font-size: 0.9em;
    color: var(--text-secondary);
}
/* 操作按钮样式 */
.action-btn {
    margin-top: 15px;
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.confirm-btn {
    background: #23d5ab;
    color: white;
}

.review-btn {
    background: #ff6b6b;
    color: white;
}

.action-btn:hover {
    opacity: 0.9;
}

/* 评价弹窗样式 */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
}

.rating {
    margin: 15px 0;
    font-size: 24px;
}

.star {
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
    margin: 0 2px;
}

.star:hover {
    color: #ffd700;
}

.review-text {
    width: 100%;
    height: 100px;
    margin: 10px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

.submit-review, .cancel-review {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-review {
    background: #23d5ab;
    color: white;
}

.cancel-review {
    background: #eee;
}
.order-card {
    position: relative;
    margin-bottom: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.order-card:hover {
    transform: translateY(-2px);
}

.product-spec {
    color: #666;
    font-size: 0.9em;
    margin-left: 8px;
}
/* 订单卡片样式 */
.order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.status-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-tag {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 16px;
}

.order-body {
    padding: 16px;
}

.group-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.group-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.items-list {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.item {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.item-details {
    display: flex;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.total-amount {
    font-weight: 600;
    color: #e8590c;
}

/* 操作按钮样式 */
.confirm-btn, .review-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.confirm-btn {
    background: #4dabf7;
    color: white;
}

.review-btn {
    background: #ffd43b;
    color: #2b2b2b;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state img {
    width: 120px;
    opacity: 0.6;
    margin-bottom: 16px;
}
/* 已完成订单样式 */
.review-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.review-badge span {
    font-size: 12px;
}

/* 已完成状态标签 */
.status-tag[style*="868e96"] {
    background-color: #f8f9fa;
    padding: 4px 12px;
    border-radius: 12px;
}
/* 团长版专属样式 */
.leader-version {
    padding: 0;
}

.leader-header {
    padding: 15px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
}



.group-title {
    font-size: 18px;
    margin: 10px 0;
    font-weight: 600;
}

.group-list-container {
    padding: 0 15px;
}

.group-card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header h3 {
    font-size: 16px;
    margin: 0;
}

.status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #23d5ab20;
    color: var(--primary-color);
}

.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.stat-item {
    text-align: center;
}

.label {
    font-size: 12px;
    color: #666;
}

.value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.goods-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.goods-tag {
    font-size: 12px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

@media (max-width: 480px) {
    .tab-buttons {
        gap: 8px;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 10px;
    }
    
    .group-card {
        padding: 12px;
    }
    
    .stats {
        gap: 15px;
    }
}
