* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    padding-top: 100px;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 12px 20px !important;
    text-align: center;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    font-weight: 500;
}

.content {
    padding: 20px;
}

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

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

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

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:active {
    opacity: 0.8;
}

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

.btn-link {
    background: transparent;
    color: #667eea;
    text-decoration: underline;
    padding: 8px;
}

.tip-text {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    line-height: 1.5;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #999;
    font-size: 12px;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.order-list {
    list-style: none;
}

.order-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.order-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

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

.status-confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #fff3e0;
    color: #e65100;
}

.order-info {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.order-info-item {
    display: flex;
    margin-bottom: 8px;
}

.order-info-label {
    width: 80px;
    color: #999;
}

.order-detail-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.detail-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.detail-label {
    width: 100px;
    color: #999;
    font-size: 14px;
}

.detail-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.action-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-btn {
    margin-bottom: 10px;
}

.warning-tip {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #856404;
    line-height: 1.6;
}

.info-tip {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #1565c0;
    line-height: 1.6;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

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

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

.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
}

.code-input-group .btn {
    width: 120px;
    flex-shrink: 0;
}

