:root {
    --bg-color: #f5f5f7;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #888888;
    --brand-color: #ffc300;
}
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; 
    background-color: #e8e8e8; 
    color: var(--text-primary); 
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
}

.page-container { 
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background-color: var(--bg-color);
    padding-bottom: 80px; 
}

.popup-header {
    display: flex;
    justify-content: center; /* 标题居中 */
    align-items: center;
    padding: 15px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.popup-header h1 {
    font-size: 18px;
}
.close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}

.content {
    text-align: center;
    padding: 30px 20px;
    flex-grow: 1;
}

.logo-container {
    margin-bottom: 20px;
}
.logo {
   width: 320px; /* 80px * 4 */
    height: 120px; /* 80px * 4 */
    border-radius: 5%;
    object-fit: contain;
}

.message-section h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}
.message-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.order-number-card {
    background-color: var(--card-bg);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin: 30px auto;
    width: 80%;
    max-width: 250px;
}
.card-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.order-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-primary);
    background-color: #333; /* 黑色背景 */
    color: white; /* 白色数字 */
    padding: 10px;
    border-radius: 8px;
}

/* 条形码容器样式 */
.barcode-container {
    margin: 30px auto;
    width: 90%;
    max-width: 400px;
    background-color: var(--card-bg);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#barcode-canvas {
    max-width: 100%;
    height: auto;
}

.order-summary {
    background-color: #f9f9f9;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}
.summary-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
}
.summary-price, .summary-quantity {
    color: var(--text-primary);
    font-weight: 500;
}

/* 订单商品列表样式 */
.order-items {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

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

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

.item-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.item-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.item-category {
    font-size: 12px;
    color: var(--text-secondary);
}

.item-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-quantity {
    font-size: 14px;
    color: var(--text-secondary);
}

.item-price {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    min-width: 60px;
    text-align: right;
}

.no-items {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 20px 0;
}