.peiwan-app,
.peiwan-app * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #333;
    min-height: 100vh;
}

.peiwan-app {
    min-height: 100vh;
    padding-bottom: 70px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-bar {
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-bar h1 {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    text-decoration: none;
}

.back-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.user-icon {
    font-size: 18px;
    text-decoration: none;
    color: #333;
}

.btn-primary, .btn-pay, .btn-action, .btn-grab, .btn-lottery {
    background: #07c160;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    margin-top: 20px;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-refresh {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-refresh:active {
    transform: translateY(0);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-refresh-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-refresh-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-refresh-float:active {
    transform: translateY(-1px);
}

.btn-refresh-float:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.select-type-page {
    padding: 40px 20px;
}

.select-type-page h2 {
    text-align: center;
    margin-bottom: 40px;
}

.type-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.type-card {
    flex: 1;
    max-width: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.type-card:active {
    transform: scale(0.95);
}

.type-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.type-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.type-card p {
    color: #999;
    font-size: 14px;
}

.peiwan-app:has(.login-page) {
    padding-bottom: 0;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-page .container {
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-box {
    background: #fff;
    padding: 60px 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.login-box h1 {
    font-size: 28px;
    margin: 0 0 15px 0;
    white-space: nowrap;
    color: #1a1a1a;
    font-weight: 600;
}

.login-box .subtitle {
    color: #999;
    margin: 0 0 40px 0;
    font-size: 15px;
}

.error-message {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #ff4d4f;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
    line-height: 1.6;
    position: relative;
    z-index: 9999;
}

.error-message strong {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.debug-info {
    background: #f0f0f0;
    border: 1px solid #d9d9d9;
    color: #666;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    text-align: left;
    word-break: break-all;
    font-family: monospace;
    position: relative;
    z-index: 9999;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-wechat-login {
    background: #07c160;
    color: #fff;
    padding: 18px 60px;
    border-radius: 10px;
    text-decoration: none;
    display: block;
    font-size: 17px;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.3s;
    margin: 0 auto;
    width: fit-content;
}

.btn-wechat-login:hover {
    background: #06ad56;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

/* 轮播图样式 */
.game-types-section {
    background: #fff;
    padding: 16px 12px;
    margin: 0 0 12px 0;
}

.game-types-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.game-types-grid::-webkit-scrollbar {
    display: none;
}

.game-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s;
    flex: 0 0 auto;
    width: 70px;
    min-width: 70px;
}

.game-type-item:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.game-type-item.active .game-type-icon {
    border: 2px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.game-type-item.active .game-type-name {
    color: #10b981;
    font-weight: 600;
}

.game-type-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-type-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-type-icon.all-games {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-type-icon.all-games span {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.game-type-name {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-swiper {
    position: relative;
    width: calc(100% - 20px);
    overflow: hidden;
    background: #f5f5f5;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    padding-top: 50%;
}

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

.swiper-slide:first-child {
    opacity: 1;
    z-index: 1;
}

.swiper-slide.active {
    opacity: 1;
    z-index: 1;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.swiper-pagination {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    background: rgba(0,0,0,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.swiper-pagination span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.swiper-pagination span.active {
    width: 24px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.products-list {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.08);
}

.product-card:active {
    transform: translateY(0) scale(0.98);
}

.product-card .product-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    position: relative;
    gap: 8px;
}

.product-card .product-info h3 {
    font-size: 15px;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* stylelint-disable-line */
    -webkit-box-orient: vertical; /* stylelint-disable-line */
    min-height: 39px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.price-sales-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 0;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: nowrap;
    flex: 1;
    min-width: 0;
}

.price .current {
    color: #ff3b30;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price .original {
    color: #8e8e93;
    text-decoration: line-through;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.sales {
    color: #8e8e93;
    font-size: 11px;
    background: #f2f2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 小屏幕优化 */
@media (max-width: 375px) {
    .price .current {
        font-size: 15px;
    }
    
    .price .original {
        font-size: 10px;
    }
    
    .sales {
        font-size: 10px;
        padding: 1px 4px;
    }
    
    .price-sales-row {
        gap: 6px;
    }
}

.order-page {
    padding-bottom: 80px;
}

.order-page .btn-pay {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    margin: 0;
    border-radius: 28px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border: none;
    width: calc(100% - 32px);
    transition: all 0.3s ease;
}

.order-page .btn-pay:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.order-form {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.product-image-section {
    width: 100%;
    background: #f5f5f5;
    overflow: hidden;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    object-fit: cover;
}

.product-info-card {
    padding: 16px;
    border-bottom: 1px solid #f0f0f1;
}

.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.current-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff3b30;
}

.original-price {
    font-size: 14px;
    color: #8e8e93;
    text-decoration: line-through;
}

.product-sales {
    font-size: 13px;
    color: #8e8e93;
    margin-left: auto;
}

.product-description-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f1;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.product-description {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
}

.product-description p {
    margin: 0 0 8px 0;
}

.product-description p:last-child {
    margin-bottom: 0;
}

.product-description img {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-description .aligncenter,
.product-description img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-description .alignleft,
.product-description img.alignleft {
    float: left;
    margin: 0 16px 8px 0;
}

.product-description .alignright,
.product-description img.alignright {
    float: right;
    margin: 0 0 8px 16px;
}

.product-description p.has-text-align-center {
    text-align: center;
}

.product-description p.has-text-align-left {
    text-align: left;
}

.product-description p.has-text-align-right {
    text-align: right;
}

.order-page .product-info {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.form-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f1;
}

.form-section:last-of-type {
    border-bottom: none;
}


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

.attr-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.sku-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sku-option {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.sku-option:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.sku-option.active {
    border-color: #10b981;
    background: #ecfdf5;
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.sku-option .sku-name {
    font-weight: 500;
    font-size: 13px;
    color: #1a1a1a;
}

.attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attr-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.attr-option.active {
    background: #07c160;
    color: #fff;
    border-color: #07c160;
}

.attr-option .price {
    font-size: 12px;
    margin-left: 5px;
}

.form-item {
    margin-bottom: 15px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #646970;
}

.form-item input,
.form-item textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.order-summary {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-item.total {
    font-size: 18px;
    font-weight: 600;
    padding-top: 10px;
}

.summary-item.total .total-label,
.summary-item.total .total-price {
    color: #ff6b6b;
    font-weight: 600;
    border-top: 1px solid #ddd;
}

.tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: #07c160;
    border-bottom-color: #07c160;
}

.orders-list {
    padding: 15px;
}

.order-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.order-no {
    font-size: 12px;
    color: #999;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-waiting {
    background: #fff3cd;
    color: #856404;
}

.status-serving {
    background: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

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

.info-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-item span:first-child {
    color: #999;
    width: 80px;
}

.amount {
    color: #ff4757;
    font-weight: 600;
}

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

.btn-view {
    padding: 8px 16px;
    background: #1989fa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.user-center-page, .worker-center-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.user-center-page .header-bar,
.worker-center-page .header-bar {
    justify-content: center;
}

.user-center-page .header-bar h1,
.worker-center-page .header-bar h1 {
    text-align: center;
    flex: 1;
}

/* 有返回键的页面，返回键在左边，标题居中 */
.header-bar.has-back {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-bar.has-back .back-btn {
    position: absolute;
    left: 15px;
}

.header-bar.has-back h1 {
    text-align: center;
    flex: 1;
}

.user-info {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 12px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}

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

.nickname {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.menu-list {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 18px 16px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    font-size: 15px;
    font-weight: 500;
}

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

.menu-item:active {
    background: linear-gradient(90deg, #f8f9ff 0%, #f5f5f5 100%);
    transform: scale(0.98);
}

.menu-item .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 12px;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.menu-item:nth-child(1) .icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
}

.menu-item:nth-child(2) .icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.menu-item:nth-child(3) .icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.menu-item:nth-child(4) .icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.menu-item:nth-child(5) .icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.menu-item:nth-child(6) .icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.menu-item .arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 18px;
    font-weight: 300;
}

.menu-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

/* 我的订单 - 橙色 */
.menu-item:nth-child(1) .menu-icon-wrapper {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
}

.menu-item:nth-child(1) .menu-icon {
    filter: grayscale(0);
}

/* 邀请赚钱 - 黄色 */
.menu-item:nth-child(2) .menu-icon-wrapper {
    background: linear-gradient(135deg, #fff9db 0%, #ffec99 100%);
}

/* 打手入驻 - 红色 */
.menu-icon-wrapper.special {
    background: linear-gradient(135deg, #ffe6e6 0%, #ffd6d6 100%);
}

/* 联系客服 - 蓝色 (如果存在且不是最后一个) */
.menu-item:nth-child(4):not(:last-child) .menu-icon-wrapper {
    background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}

/* 退出登录 - 灰色 (总是最后一个) */
.menu-item:last-child .menu-icon-wrapper {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.menu-icon {
    font-size: 24px;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.menu-desc {
    font-size: 13px;
    color: #999;
}

.menu-arrow {
    font-size: 24px;
    color: #ccc;
    margin-left: 8px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.25);
    margin-left: auto;
    margin-right: 8px;
}

.btn-secondary {
    background: #fff;
    color: #07c160;
    border: 2px solid #07c160;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #07c160;
    color: #fff;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
    width: 100%;
}

.success-state {
    background: #fff;
    margin: 20px;
    padding: 60px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.success-icon-wrapper {
    margin-bottom: 30px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #07c160;
    stroke-miterlimit: 10;
    box-shadow: inset 0 0 0 #07c160;
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #07c160;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #fff;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0 0 0 50px #07c160;
    }
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.success-desc {
    font-size: 15px;
    color: #666;
    margin: 0 0 35px 0;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-actions .btn-large {
    margin: 0;
}

.register-content {
    padding: 12px;
}

.deposit-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.deposit-card h3 {
    font-size: 20px;
    margin: 0 0 20px 0;
    color: #333;
}

.deposit-amount {
    font-size: 48px;
    font-weight: 600;
    color: #ff6b6b;
    margin: 20px 0;
}

.deposit-desc {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.deposit-desc p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.payment-settings-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.notice-box {
    background: #fff;
    margin: 20px;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.notice-box h3 {
    font-size: 20px;
    margin: 15px 0;
    color: #333;
}

.notice-box p {
    color: #666;
    margin-bottom: 25px;
}

.payment-content {
    padding: 20px;
}

.tips-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.tips-box p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

.qrcode-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.qrcode-section h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #333;
}

.upload-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin: 0 auto;
}

.upload-box:hover {
    border-color: #07c160;
}

.upload-box .preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.upload-box:hover .upload-overlay {
    opacity: 1;
}

.upload-overlay span {
    color: #fff;
    font-size: 14px;
}

.upload-placeholder {
    text-align: center;
    color: #999;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.uploading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07c160;
    font-size: 14px;
}

.badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: auto;
    margin-right: 10px;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.badge.success {
    background: #d4edda;
    color: #155724;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

.stats-cards {
    display: flex;
    gap: 15px;
    padding: 15px;
}

.stat-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #07c160;
}

.worker-register-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.worker-register-page .header-bar {
    background: #fff;
    margin: 0;
    padding: 12px 16px;
}

.worker-register-page .success-state,
.worker-register-page .register-content {
    margin: 12px;
}

.register-steps {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.step {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.step.active .step-number {
    background: #07c160;
}

.step.completed .step-number {
    background: #1989fa;
}

.qrcode-upload {
    margin-top: 15px;
}

.upload-item {
    margin-bottom: 20px;
}

.upload-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.upload-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-box .preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    color: #999;
}

.deposit-info {
    margin: 15px 0;
}

.deposit-info .amount {
    color: #ff4757;
    font-size: 24px;
    font-weight: 600;
}

.deposit-info .tip {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
}

.success-state {
    text-align: center;
    padding: 60px 20px;
}

.success-state .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #07c160;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.grab-orders-page .order-card {
    cursor: default;
}

.btn-grab {
    width: 100%;
    margin-top: 15px;
}

.balance-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 20px;
    text-align: center;
}

.balance-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.balance-value {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
}

.balance-tip {
    font-size: 12px;
    opacity: 0.8;
}

.withdraw-form, .refund-section {
    background: #fff;
    margin: 15px;
    border-radius: 8px;
    padding: 20px;
}

.qrcode-select {
    margin-top: 10px;
}

.qrcode-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.qrcode-option input[type="radio"] {
    margin-right: 10px;
}

.qrcode-preview {
    width: 60px;
    height: 60px;
    margin-left: auto;
    border-radius: 4px;
}

.withdraw-list, .deposit-list {
    margin: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.withdraw-list h3, .deposit-list h3 {
    margin-bottom: 15px;
}

.list-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

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

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

.item-info {
    font-size: 12px;
    color: #999;
}

.reject-reason {
    color: #ff4757;
    margin-top: 5px;
}

.order-detail {
    padding: 15px;
    max-width: 100%;
}

.detail-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box;
}

.detail-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.upload-status-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border-radius: 12px;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 100%;
}

.upload-status-box.uploaded {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.upload-status-box.waiting {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.upload-status-box .status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.upload-status-box.uploaded .status-icon {
    background: #10b981;
    color: #fff;
}

.upload-status-box.waiting .status-icon {
    background: #f59e0b;
    color: #fff;
}

.upload-status-box .status-text {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.upload-status-box.uploaded .status-text {
    color: #065f46;
}

.upload-status-box.waiting .status-text {
    color: #92400e;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
    font-size: 14px;
}

.detail-item span:first-child {
    color: #999;
    width: 100px;
    flex-shrink: 0;
}

.detail-item .status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.detail-item .status.status-pending {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.status.countdown {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    animation: pulse 2s ease-in-out infinite;
}

.status.countdown .time-left {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.detail-item .status.status-waiting {
    background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.detail-item .status.status-accepted {
    background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
}

.detail-item .status.status-serving {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
}

.detail-item .status.status-completed {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
}

.tip-box {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    margin: 15px;
    border-radius: 8px;
    text-align: center;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 1000;
    border-top: 1px solid #f0f0f0;
    backdrop-filter: blur(10px);
}

.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #8c8c8c;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 0;
    position: relative;
}

.bottom-nav .nav-item:active {
    transform: scale(0.92);
}

.bottom-nav .nav-item.active {
    color: #07c160;
}

.bottom-nav .nav-item .icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    fill: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav .nav-item.active .icon {
    transform: translateY(-2px);
}

.bottom-nav .nav-item .label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1;
}

/* 首页样式 */
.home-page {
    padding: 20px;
}

.home-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.welcome-section h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-section .subtitle {
    font-size: 14px;
    color: #999;
}

/* 考核申请页面 */
.exam-apply-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.exam-apply-page .header-bar {
    background: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.exam-apply-page .header-bar .back-btn {
    position: absolute;
    left: 15px;
}

.exam-apply-page .header-bar h1 {
    text-align: center;
}

.apply-content,
.pending-state,
.rejected-state {
    padding: 20px;
}

.exam-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.exam-card h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

.exam-amount {
    font-size: 48px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.exam-desc {
    text-align: left;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.exam-desc p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    line-height: 1.6;
}

.exam-desc p:last-child {
    margin-bottom: 0;
}

.pending-state,
.rejected-state {
    text-align: center;
    padding: 60px 20px;
}

.pending-icon,
.rejected-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.pending-state h2,
.rejected-state h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
}

.pending-state p,
.rejected-state p {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

.hint {
    font-size: 12px;
    color: #bbb;
    margin-top: 20px;
}

/* 押金提示 */
.deposit-notice {
    margin: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.deposit-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.deposit-notice .notice-content {
    position: relative;
    z-index: 1;
}

.deposit-notice .notice-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.deposit-notice h3 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.deposit-notice p {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.deposit-notice .btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background: #fff;
    color: #667eea;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.deposit-notice .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.deposit-notice .btn-primary:active {
    transform: translateY(0);
}

/* 押金管理页面 */
.deposit-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 20px;
}

.deposit-card,
.action-card {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.deposit-card .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.deposit-card .card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.deposit-card .card-body {
    padding: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-size: 14px;
    color: #666;
}

.info-row .value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.info-row .amount {
    font-size: 18px;
    color: #ff6b6b;
    font-weight: 700;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.status-badge.status-unpaid {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-refunded {
    background: #d1ecf1;
    color: #0c5460;
}

.action-card {
    padding: 20px;
    text-align: center;
}

.action-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.action-card .desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
}

.action-card .form-item {
    text-align: left;
    margin-bottom: 20px;
}

.action-card .form-item label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.action-card .form-item textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
}

.btn-large {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-danger {
    background: #ff4757;
    color: #fff;
}

.deposit-list {
    margin: 12px;
}

.deposit-list h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding: 0 8px;
}

.deposit-list .list-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

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

.deposit-list .type {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.deposit-list .item-info {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
}

.deposit-list .reject-reason {
    color: #ff4757;
}

/* 提现页面收款方式选择 */
.payment-method-select {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.payment-option {
    flex: 1;
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
    overflow: hidden;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.payment-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.3s;
}

.payment-option:has(input[type="radio"]:checked)::before {
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.method-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
}

.method-icon {
    display: none;
}

.method-name {
    font-size: 15px;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s;
}

.payment-option:has(input[type="radio"]:checked) .method-name {
    color: #667eea;
    font-weight: 600;
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 余额明细样式 */
.log-desc {
    font-size: 15px;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-time {
    font-size: 12px;
    color: #9ca3af;
}

.log-amount {
    font-size: 18px;
    font-weight: 700;
}

.log-amount.income {
    color: #10b981;
}

.log-amount.expense {
    color: #ef4444;
}

.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #f59e0b;
}

.status-badge.status-rejected {
    background: #fee2e2;
    color: #ef4444;
}

/* 订单卡片美化 */
.order-card {
    background: #fff;
    border-radius: 16px;
    margin: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-bottom: none;
}

.order-no {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.order-card .status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.order-card .status.status-waiting {
    background: linear-gradient(135deg, #ff9800 0%, #ff6b6b 100%);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.order-card .status.status-accepted {
    background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.order-card .status.status-serving {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.order-card .status.status-completed {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.order-card .order-body {
    padding: 12px 12px 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-card .product-info {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.order-card .product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

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

.order-card .product-details {
    flex: 1 0 80px !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 80px !important;
    max-height: 80px !important;
    justify-content: space-between !important;
}

.order-card .product-middle {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
}

.order-card .product-specs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 !important;
    margin-right: auto !important;
}

.order-card .spec-tag {
    padding: 4px 12px !important;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8eaf6 100%) !important;
    color: #667eea !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    border: 1px solid #d1d5f0 !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.1) !important;
}

.order-card .order-time {
    font-size: 11px !important;
    color: #999 !important;
    white-space: nowrap !important;
}

.order-card .product-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.order-card .product-bottom {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.spec-tag {
    padding: 2px 6px;
    background: #f5f5f5;
    color: #999;
    border-radius: 3px;
    font-size: 11px;
    border: 1px solid #e8e8e8;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
}

.product-price .price-symbol {
    font-size: 11px;
}

.worker-income {
    font-size: 11px;
    color: #4caf50;
    margin-top: 2px;
    font-weight: 500;
}

.order-time {
    font-size: 11px;
    color: #999;
}

/* 订单元信息 */
.order-meta {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #999;
}

.meta-item .meta-icon {
    margin-right: 3px;
    font-size: 12px;
}

.meta-label {
    color: #999;
    font-weight: 400;
}

.meta-value {
    color: #666;
    font-weight: 500;
    margin-left: 2px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.info-item span:first-child {
    color: #999;
    font-weight: 500;
}

.info-item span:last-child {
    color: #333;
    font-weight: 600;
}

.info-item .amount {
    font-size: 20px;
    color: #ff6b6b;
    font-weight: 700;
}

.order-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding: 0 12px 12px 12px;
    border-top: none;
}

.order-actions .btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.5;
    box-sizing: border-box;
    min-height: 44px;
}

.order-actions .btn-pay {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.order-actions .btn-pay:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.order-actions .btn-pay:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.order-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.order-actions .btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.order-actions .btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.order-actions .btn-secondary:active {
    background: #e0e0e0;
}

/* 抽奖按钮 */
.order-actions .btn-lottery {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.order-actions .btn-lottery:active {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3) !important;
}

/* 中奖徽章 */
.prize-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
}

/* 抢单大厅订单卡片 */
.grab-orders-page .order-card {
    border-left: none;
}

.grab-orders-page .order-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-grab {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-grab:active {
    transform: translateY(2px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* 抢单大厅专属样式 */
/* 游戏类型筛选 */
.game-type-filter {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #f0f0f0;
}

.game-type-filter::-webkit-scrollbar {
    display: none;
}

.game-type-filter .filter-item {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
}

.game-type-filter .filter-item:hover {
    background: #e8e8e8;
}

.game-type-filter .filter-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
}

.grab-orders-page .orders-list {
    padding: 0 !important;
    margin-top: 0;
}

.grab-orders-page .grab-order-card,
.grab-order-card {
    margin: 8px 12px !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border: none !important;
}

.grab-orders-page .grab-order-card .order-body,
.grab-order-card .order-body {
    padding: 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.grab-order-card .product-info {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    align-items: flex-start !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.grab-order-card .product-image {
    width: 80px !important;
    height: 80px !important;
    padding-top: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f5f5f5 !important;
    position: relative !important;
}

.grab-order-card .product-image img {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.grab-order-card .product-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    justify-content: space-between !important;
    height: 80px !important;
}

.grab-order-card .product-name {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
}

.grab-order-card .product-middle {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
}

.grab-order-card .product-specs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 !important;
    margin-right: auto !important;
}

.grab-order-card .spec-tag {
    padding: 4px 12px !important;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8eaf6 100%) !important;
    color: #667eea !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    border: 1px solid #d1d5f0 !important;
    white-space: nowrap !important;
    font-weight: 500 !important;
    box-shadow: 0 1px 3px rgba(102, 126, 234, 0.1) !important;
}

.grab-order-card .product-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ff6b6b !important;
}

.btn-grab-inline {
    padding: 8px 20px !important;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3) !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

.btn-grab-inline:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4) !important;
}

.btn-grab-inline:active {
    transform: scale(0.95) !important;
    box-shadow: 0 1px 4px rgba(255, 107, 107, 0.3) !important;
}

/* 底部弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.order-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.order-popup.active {
    transform: translateY(0);
}

.popup-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

.popup-scroll-content {
    overflow-y: auto;
    padding: 16px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.popup-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.total-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.total-info .label {
    font-size: 14px;
    color: #666;
}

.total-info .price {
    font-size: 20px;
    font-weight: 600;
    color: #ff4d4f;
}

.btn-confirm-pay {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-confirm-pay:active {
    transform: scale(0.98);
}
