/**
 * B2 Group Buy Plugin - Frontend My Orders Page Styles
 * 前台我的团购页样式（从my.php提取）
 */

/* 引入字体图标 */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* 全局重置 */
* {
    box-sizing: border-box;
}

.my-group-buy-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页面头部区域 - 全屏宽度紧贴菜单 */
.page-hero {
    position: relative;
    background: var(--gb-purple-gradient);
    color: white;
    padding: 60px 0 80px;
    overflow: hidden;
    /* 确保全屏宽度 */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    box-sizing: border-box;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-info {
    flex: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: white;
}

.breadcrumb-item i {
    margin-right: 6px;
}

.breadcrumb-separator {
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.breadcrumb-current {
    color: white;
    font-weight: 500;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-title i {
    font-size: 32px;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-actions {
    flex-shrink: 0;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-hero.btn-primary {
    background: white;
    color: var(--gb-primary);
}

.btn-hero.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 主要内容区域 */
.page-content {
    padding: 40px 0 80px;
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

/* 订单时间轴 */
.orders-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 45px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, #e1e5e9 0%, transparent 100%);
    z-index: 1;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    width: 32px;
    height: 32px;
}

.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-icon i {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 状态图标颜色 */
.timeline-item.success .timeline-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    color: white;
}

.timeline-item.completed .timeline-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-color: #3498db;
    color: white;
}

.timeline-item.active .timeline-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #e74c3c;
    color: white;
    animation: pulse 2s infinite;
}

.timeline-item.expired .timeline-icon {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    border-color: #95a5a6;
    color: white;
}

.timeline-item.refunded .timeline-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-color: #f39c12;
    color: white;
}

/* 现代化订单卡片 */
.order-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-left: 48px;
}

.order-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 订单头部 */
.order-header-modern {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
    background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
}

.order-image-modern {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.image-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-card-modern:hover .image-overlay-modern {
    opacity: 1;
}

.view-btn {
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.view-btn:hover {
    transform: scale(1.2);
    color: white;
}

.order-title-section {
    flex: 1;
    padding: 0 20px;
    min-width: 0;
}

.order-title-modern {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.order-title-modern a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-title-modern a:hover {
    color: var(--gb-primary);
}

.order-meta-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #7f8c8d;
}

.order-id-modern,
.order-time-modern {
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-id-modern i,
.order-time-modern i {
    font-size: 12px;
}

/* 状态标签 */
.status-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge-modern.success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.status-badge-modern.completed {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.status-badge-modern.active {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.status-badge-modern.expired {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.status-badge-modern.refunded {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* 订单主体 */
.order-body-modern {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 支付信息卡片 */
.payment-info-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.payment-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    font-size: 18px;
    margin-right: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-details {
    flex: 1;
}

.payment-method {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 2px;
}

.payment-amount {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.payment-status {
    flex-shrink: 0;
}

.status-paid,
.status-refunded,
.status-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-paid {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.status-refunded {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.status-pending {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

/* 进度信息卡片 */
.progress-info-card {
    padding: 16px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
}

.progress-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.progress-stats-modern {
    font-size: 14px;
    color: var(--gb-primary);
    font-weight: 600;
}

.current-members {
    color: #e74c3c;
}

.progress-bar-modern {
    height: 8px;
    background: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.progress-fill-modern {
    height: 100%;
    background: var(--gb-purple-gradient);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.progress-text-modern {
    text-align: center;
    font-size: 12px;
}

.need-more {
    color: #f39c12;
    font-weight: 600;
}

.goal-reached {
    color: #27ae60;
    font-weight: 600;
}

.need-more i,
.goal-reached i {
    margin-right: 4px;
}

/* 倒计时卡片 */
.countdown-info-card {
    padding: 16px;
    background: var(--gb-purple-gradient);
    border-radius: 12px;
    color: white;
}

.countdown-header-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.countdown-timer-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.countdown-item-modern {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.countdown-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.countdown-label {
    font-size: 10px;
    opacity: 0.8;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 16px;
    font-weight: 700;
    opacity: 0.7;
}

/* 订单底部 */
.order-footer-modern {
    padding: 20px;
    background: #fafbfc;
    border-top: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons-modern {
    display: flex;
    gap: 8px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modern.btn-primary {
    background: var(--gb-purple-gradient);
    color: white;
}

.btn-modern.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-modern.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.btn-modern.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    color: white;
}

.btn-modern.btn-outline {
    background: white;
    color: var(--gb-primary);
    border: 1px solid var(--gb-primary);
}

.btn-modern.btn-outline:hover {
    background: var(--gb-primary);
    color: white;
}

.quick-info-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #7f8c8d;
}

.created-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分页 */
.pagination-container {
    margin-top: 60px;
    text-align: center;
}

.pagination-wrapper ul {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination-wrapper li {
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #e1e5e9;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
}

.pagination-wrapper .current {
    background: var(--gb-primary);
    color: white;
    border-color: var(--gb-primary);
}

.pagination-wrapper a:hover:not(.current) {
    background: #f8f9fa;
    border-color: var(--gb-primary);
    color: var(--gb-primary);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: modalAppear 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalContentAppear 0.3s ease;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #f1f3f4;
    background: transparent;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: #27ae60;
    font-size: 18px;
}

.modal-close {
    background: #f8f9fa;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-close:hover {
    background: #e9ecef;
    color: #2c3e50;
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-height: calc(80vh - 140px);
}

#success-content-text {
    line-height: 1.6;
    color: #2c3e50;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#success-content-text h1,
#success-content-text h2,
#success-content-text h3,
#success-content-text h4,
#success-content-text h5,
#success-content-text h6 {
    color: #2c3e50;
    margin: 16px 0 8px 0;
}

#success-content-text p {
    margin: 12px 0;
}

#success-content-text a {
    color: var(--gb-primary);
    text-decoration: none;
    word-break: break-all;
}

#success-content-text a:hover {
    text-decoration: underline;
}

#success-content-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

#success-content-text pre,
#success-content-text code {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

#success-content-text blockquote {
    border-left: 4px solid var(--gb-primary);
    padding-left: 16px;
    margin: 16px 0;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
}

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: transparent;
}

.btn-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    height: 44px;
    min-height: 44px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 100px;
}

.btn-modal.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e1e5e9;
}

.btn-modal.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-modal.btn-primary {
    background: var(--gb-purple-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.btn-modal.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.btn-modal.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 退款按钮样式 */
.btn-modern.btn-refund {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.btn-modern.btn-refund:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* 退款状态标签 */
.btn-modern.btn-refund-status {
    cursor: default;
    font-size: 12px;
    padding: 6px 12px;
}

.btn-modern.btn-refund-status.refund-pending {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.btn-modern.btn-refund-status.refund-approved {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.btn-modern.btn-refund-status.refund-rejected {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

/* 退款弹窗样式 */
.refund-modal-content {
    max-width: 500px;
}

.refund-info {
    padding: 10px 0;
}

.refund-order-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.refund-order-info p {
    margin: 0 0 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.refund-order-info p:last-child {
    margin-bottom: 0;
}

.refund-order-info p span:first-child {
    color: #7f8c8d;
    font-weight: 400;
}

.refund-order-info p span:last-child {
    color: #2c3e50;
    font-weight: 500;
}

.refund-amount-value {
    color: #e74c3c !important;
    font-weight: 600 !important;
    font-size: 1.15em;
}

.refund-reason-form {
    margin-bottom: 20px;
}

.refund-reason-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.refund-reason-form label .required {
    color: #e74c3c;
}

.refund-reason-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.refund-reason-form textarea:focus {
    outline: none;
    border-color: var(--gb-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.refund-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    font-size: 13px;
    color: #666;
}

.refund-notice i {
    color: var(--gb-primary);
    margin-top: 2px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-illustration {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: var(--gb-purple-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.empty-description {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.empty-actions {
    margin-top: 30px;
}

.btn-empty {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gb-purple-gradient);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

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

    .page-hero {
        padding: 30px 0 50px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .hero-info {
        max-width: 100%;
    }

    .hero-title {
        font-size: 26px;
        justify-content: center;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-hero {
        padding: 14px 28px;
        font-size: 15px;
        min-height: 48px;
        border-radius: 10px;
    }

    /* 时间轴移动端优化 */
    .orders-timeline {
        max-width: 100%;
        margin: 0 0 30px;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-item::before {
        left: 14px;
        top: 40px;
    }

    .timeline-marker {
        width: 28px;
        height: 28px;
    }

    .timeline-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
        line-height: 1;
    }

    .timeline-icon i {
        font-size: 14px;
        line-height: 1;
    }

    /* 订单卡片移动端优化 */
    .order-card-modern {
        margin-left: 45px;
        border-radius: 12px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }

    .order-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .order-title-section {
        padding: 0;
        width: 100%;
        text-align: left;
    }

    .order-title {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 6px;
    }

    .order-meta {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .status-badge-modern {
        align-self: flex-start;
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 12px;
    }

    /* 信息卡片移动端优化 */
    .order-content-modern {
        padding: 0 16px 16px;
        gap: 12px;
    }

    .info-card {
        border-radius: 10px;
        padding: 12px;
    }

    .card-header {
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-title i {
        font-size: 12px;
    }

    /* 支付信息卡片 */
    .payment-info-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .payment-icon-wrapper {
        margin: 0 auto;
        width: 32px;
        height: 32px;
    }

    .payment-icon-wrapper i {
        font-size: 16px;
    }

    .payment-details {
        text-align: center;
    }

    .payment-method {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .payment-amount {
        font-size: 16px;
    }

    /* 进度信息卡片 */
    .progress-info-card .progress-stats {
        font-size: 13px;
    }

    .progress-info-card .progress-bar {
        height: 8px;
    }

    .progress-info-card .progress-text {
        font-size: 11px;
    }

    /* 倒计时卡片 */
    .countdown-info-card .countdown-timer-modern {
        gap: 4px;
    }

    .countdown-item-modern {
        padding: 6px 8px;
        border-radius: 6px;
    }

    .countdown-number {
        font-size: 14px;
    }

    .countdown-unit {
        font-size: 9px;
    }

    /* 订单底部 */
    .order-footer-modern {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
        padding: 14px 16px;
    }

    .order-time {
        font-size: 11px;
        text-align: left;
    }

    .action-buttons-modern {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .btn-outline {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 8px;
        flex: 1;
        min-width: 100px;
    }

    /* 弹窗移动端优化 */
    .modal-overlay {
        padding: 15px;
    }

    .modal-content {
        margin: 0;
        max-height: calc(100vh - 30px);
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    .modal-header {
        padding: 18px 18px 12px;
    }

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

    .modal-body {
        padding: 18px;
        max-height: calc(100vh - 140px);
    }

    .modal-footer {
        padding: 12px 18px 18px;
    }

    .btn-modal {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 44px;
    }

    /* 空状态移动端优化 */
    .empty-state {
        padding: 60px 20px;
    }

    .empty-illustration {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
        font-size: 40px;
    }

    .empty-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .empty-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .btn-empty {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .page-hero {
        padding: 25px 0 40px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 8px;
    }

    /* 小屏幕时间轴优化 */
    .timeline-item {
        margin-bottom: 25px;
    }

    .timeline-item::before {
        left: 10px;
        top: 35px;
    }

    .timeline-marker {
        width: 20px;
        height: 20px;
    }

    .timeline-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
        border-width: 1px;
    }

    .timeline-icon i {
        font-size: 11px;
    }

    /* 小屏幕订单卡片 */
    .order-card-modern {
        margin-left: 35px;
        border-radius: 10px;
    }

    .order-header-modern {
        padding: 14px;
        gap: 12px;
    }

    .order-title {
        font-size: 15px;
    }

    .order-meta {
        font-size: 11px;
    }

    .status-badge-modern {
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 10px;
    }

    .order-content-modern {
        padding: 0 14px 14px;
        gap: 10px;
    }

    .info-card {
        padding: 10px;
        border-radius: 8px;
    }

    .card-title {
        font-size: 12px;
    }

    .card-title i {
        font-size: 11px;
    }

    .payment-icon-wrapper {
        width: 28px;
        height: 28px;
    }

    .payment-icon-wrapper i {
        font-size: 14px;
    }

    .payment-method {
        font-size: 12px;
    }

    .payment-amount {
        font-size: 14px;
    }

    .countdown-number {
        font-size: 12px;
    }

    .countdown-unit {
        font-size: 8px;
    }

    .countdown-item-modern {
        padding: 4px 6px;
    }

    .order-footer-modern {
        padding: 12px 14px;
        gap: 12px;
    }

    .order-time {
        font-size: 10px;
    }

    .btn-outline {
        padding: 8px 14px;
        font-size: 12px;
        min-height: 36px;
        border-radius: 6px;
        min-width: 80px;
    }

    /* 小屏幕弹窗 */
    .modal-overlay {
        padding: 10px;
    }

    .modal-content {
        border-radius: 10px;
        max-height: calc(100vh - 20px);
    }

    .modal-header {
        padding: 16px 16px 10px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-body {
        padding: 16px;
        max-height: calc(100vh - 120px);
    }

    .modal-footer {
        padding: 10px 16px 16px;
    }

    .btn-modal {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 40px;
    }

    /* 小屏幕空状态 */
    .empty-state {
        padding: 50px 15px;
    }

    .empty-illustration {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
        font-size: 32px;
    }

    .empty-title {
        font-size: 18px;
    }

    .empty-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-empty {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .timeline-item::before {
        left: 8px;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
    }

    .timeline-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .timeline-icon i {
        font-size: 9px;
    }

    .order-card-modern {
        margin-left: 28px;
    }

    .order-header-modern {
        padding: 12px;
    }

    .order-title {
        font-size: 14px;
    }

    .order-content-modern {
        padding: 0 12px 12px;
    }

    .info-card {
        padding: 8px;
    }

    .btn-outline {
        padding: 6px 12px;
        font-size: 11px;
        min-height: 32px;
        min-width: 70px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn-outline,
    .btn-hero,
    .btn-empty,
    .btn-modal {
        min-height: 44px;
        touch-action: manipulation;
    }

    .order-card-modern:hover {
        transform: none;
    }

    .order-card-modern:active {
        transform: scale(0.98);
    }

    .btn-outline:hover {
        transform: none;
    }

    .btn-outline:active {
        transform: scale(0.95);
    }

    .timeline-icon:active {
        transform: scale(0.9);
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .page-hero {
        padding: 20px 0 30px;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }

    .hero-title {
        font-size: 24px;
        justify-content: flex-start;
    }

    .hero-actions {
        width: auto;
        flex-shrink: 0;
    }

    .modal-content {
        max-height: calc(100vh - 40px);
    }

    .modal-body {
        max-height: calc(100vh - 140px);
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .timeline-icon,
    .payment-icon-wrapper,
    .empty-illustration {
        border: 0.5px solid transparent;
    }

    .order-card-modern {
        border: 0.5px solid rgba(0, 0, 0, 0.08);
    }
}

/* ============================================
   深色模式支持
   ============================================ */
@media (prefers-color-scheme: dark) {
    .group-buy-my-page {
        background: var(--gb-bg-secondary);
        color: var(--gb-text-primary);
    }

    .order-card-modern {
        background: var(--gb-bg-primary);
        border-color: var(--gb-glass-border);
    }

    .order-card-modern:hover {
        box-shadow: var(--gb-shadow-lg);
    }

    .order-header-modern,
    .order-title-modern {
        color: var(--gb-text-primary);
    }

    .order-date-modern,
    .order-id-modern {
        color: var(--gb-text-muted);
    }

    .order-info-item {
        color: var(--gb-text-secondary);
    }

    .timeline-item .timeline-content {
        color: var(--gb-text-secondary);
    }

    .countdown-info-card {
        background: var(--gb-bg-tertiary);
    }

    .countdown-number {
        color: var(--gb-text-primary);
    }

    .countdown-unit {
        color: var(--gb-text-muted);
    }

    .modal-content {
        background: var(--gb-bg-primary);
    }

    .modal-header {
        border-bottom-color: var(--gb-glass-border);
    }

    .modal-title {
        color: var(--gb-text-primary);
    }

    .modal-body {
        color: var(--gb-text-secondary);
    }

    .pagination-wrapper a,
    .pagination-wrapper span {
        background: var(--gb-bg-primary);
        border-color: var(--gb-glass-border);
        color: var(--gb-text-secondary);
    }

    .pagination-wrapper a:hover:not(.current) {
        background: var(--gb-bg-tertiary);
    }
}

/* 手动暗色模式 */
:root.gb-dark-mode .group-buy-my-page {
    background: var(--gb-bg-secondary);
    color: var(--gb-text-primary);
}

:root.gb-dark-mode .order-card-modern {
    background: var(--gb-bg-primary);
    border-color: var(--gb-glass-border);
}

:root.gb-dark-mode .modal-content {
    background: var(--gb-bg-primary);
}

:root.gb-dark-mode .modal-title {
    color: var(--gb-text-primary);
}

/* ==================== Toast 通知样式 ==================== */
.gb-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.gb-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gb-toast-show {
    transform: translateX(0);
    opacity: 1;
}

.gb-toast-hide {
    transform: translateX(120%);
    opacity: 0;
}

.gb-toast-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gb-toast-icon svg {
    width: 100%;
    height: 100%;
}

.gb-toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #1f2937;
}

.gb-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
}

.gb-toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* Toast 类型样式 */
.gb-toast-success {
    border-left: 4px solid #10b981;
}

.gb-toast-success .gb-toast-icon {
    color: #10b981;
}

.gb-toast-error {
    border-left: 4px solid #ef4444;
}

.gb-toast-error .gb-toast-icon {
    color: #ef4444;
}

.gb-toast-warning {
    border-left: 4px solid #f59e0b;
}

.gb-toast-warning .gb-toast-icon {
    color: #f59e0b;
}

.gb-toast-info {
    border-left: 4px solid #3b82f6;
}

.gb-toast-info .gb-toast-icon {
    color: #3b82f6;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .gb-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
    }

    .gb-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
        padding: 12px 14px;
    }
}

/* 暗色模式 Toast */
:root.gb-dark-mode .gb-toast {
    background: #1f2937;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

:root.gb-dark-mode .gb-toast-message {
    color: #f3f4f6;
}

:root.gb-dark-mode .gb-toast-close {
    color: #6b7280;
}

:root.gb-dark-mode .gb-toast-close:hover {
    background: #374151;
    color: #d1d5db;
}
