/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* 不同页面的背景 */
body.page-index {
    background-image: url('/images/backgrounds/index-bg.jpg');
}

body.page-redeem {
    background-image: url('/images/backgrounds/redeem-bg.jpg');
}

body.page-warehouse {
    background-image: url('/images/backgrounds/warehouse-bg.jpg');
}

body.page-ship {
    background-image: url('/images/backgrounds/ship-bg.jpg');
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 20px 15px 60px;
    min-height: 100vh;
}

img {
    background: transparent;
}

/* Banner区域 */
.banner {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    display: block;
}

/* 功能按钮区域 */
.function-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
}

.function-btn {
    flex: 1;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    background: transparent;
    border: none;
    box-shadow: none;
}

.function-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.function-btn img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    background: transparent;
}

/* 互换平台区域 */
.exchange-platform {
    margin: 30px 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.exchange-platform:active {
    transform: scale(0.98);
}

.exchange-platform img {
    width: 100%;
    display: block;
    border-radius: 15px;
}

/* 中奖记录区域 */
.winning-records {
    margin: 30px 0;
}

.records-header {
    text-align: center;
    margin-bottom: 20px;
}

.records-header h2 {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.records-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.records-container {
    background: linear-gradient(135deg, #FFB6D9 0%, #FFD1DC 100%);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.records-table-wrapper {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
}

.records-table thead {
    position: sticky;
    top: 0;
    background: #FFD700;
    z-index: 10;
}

.records-table th {
    padding: 12px 8px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #FFA500;
}

.records-table td {
    padding: 12px 8px;
    font-size: 14px;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #FFE4E1;
}

.records-table tbody tr:hover {
    background: rgba(255, 182, 193, 0.2);
}

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

/* 兑换页面样式 */
.redeem-page {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h1 {
    font-size: 42px;
    font-weight: bold;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.form-container {
    background: rgba(255, 182, 217, 0.95);
    border-radius: 25px;
    padding: 30px 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.form-label {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 3px solid #fff;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #FF69B4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.3);
}

.form-input::placeholder {
    color: #999;
}

.btn {
    width: 100%;
    padding: 18px;
    font-size: 22px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #9B7FED 0%, #7B68EE 100%);
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-large {
    font-size: 24px;
    padding: 20px;
    margin: 30px 0;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #9B7FED 0%, #7B68EE 100%);
    border-radius: 30px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    border: 4px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: bold;
    color: #FFB6D9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-body {
    text-align: center;
}

.product-display {
    background: rgba(255, 182, 217, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.product-display img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    background: #fff;
    border-radius: 15px;
    padding: 10px;
}

.product-display .name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.modal-footer {
    text-align: center;
}

.modal-footer .btn {
    max-width: 300px;
    margin: 10px auto;
}

.btn-secondary {
    background: rgba(255, 182, 217, 0.95);
    color: #333;
    border: 3px solid #fff;
}

/* 仓库页面样式 */
.warehouse-page {
    padding: 20px 0;
}

.warehouse-header {
    background: rgba(255, 182, 217, 0.95);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
}

.warehouse-header .input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.warehouse-header .form-input {
    flex: 1;
}

.warehouse-header .btn-check {
    flex: 0 0 auto;
    width: 100px;
    padding: 15px;
    font-size: 16px;
}

.warehouse-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.tab-btn {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(155, 127, 237, 0.8);
    color: #fff;
}

.tab-btn.active {
    background: linear-gradient(135deg, #9B7FED 0%, #7B68EE 100%);
    box-shadow: 0 4px 12px rgba(155, 127, 237, 0.5);
}

.warehouse-content {
    background: rgba(255, 182, 217, 0.95);
    border-radius: 25px;
    padding: 25px 20px;
    min-height: 400px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.product-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    border: 2px solid rgba(255, 182, 217, 0.5);
    transition: transform 0.2s;
}

.product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.product-item .name {
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-item .status {
    font-size: 11px;
    color: #666;
}

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

.empty-state img {
    width: 120px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
}

/* 发货页面样式 */
.ship-page {
    padding: 40px 0;
}

.ship-form {
    background: rgba(255, 182, 217, 0.95);
    border-radius: 25px;
    padding: 30px 20px;
}

.notice-box {
    background: rgba(45, 27, 61, 0.9);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid rgba(255, 182, 217, 0.5);
}

.notice-box p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.notice-box .highlight {
    color: #FFB6D9;
    font-weight: bold;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px 40px;
    border-radius: 15px;
    z-index: 2000;
    display: none;
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.toast.show {
    display: block;
    animation: fadeInOut 2s;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    10% { opacity: 1; transform: translate(-50%, -50%); }
    90% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 15px 10px 50px;
    }
    
    .function-buttons {
        gap: 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .warehouse-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .records-table th,
    .records-table td {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #999;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 返回主页按钮 */
.back-home {
    position: fixed;
    top: calc(40 * var(--scale));
    left: calc(30 * var(--scale));
    width: calc(80 * var(--scale));
    height: calc(80 * var(--scale));
    border-radius: 50%;
    background: #FF78B3;
    border: calc(4 * var(--scale)) solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    text-decoration: none;
}

.back-home svg {
    width: calc(36 * var(--scale));
    height: calc(36 * var(--scale));
    fill: #fff;
    display: block;
}

/* 点击反馈效果 */
button:active,
.function-btn:active,
.exchange-platform:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

/* 飘落彩带样式 */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 关键：不影响点击 */
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    opacity: 0.8;
    top: -40px; /* 初始位置更高一点 */
    animation: fall linear infinite;
    pointer-events: none;
    background-color: transparent !important; /* 去掉原来的背景色 */
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(20px);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(20px);
    }
    100% {
        transform: translateY(105vh) rotate(360deg) translateX(0);
        opacity: 0.2;
    }
}

/* ==================== 设计稿对齐布局 ==================== */
:root {
    --design-width: 1125;
    --design-height: 2436;
    --page-width: min(100vw, 750px);
    --scale: calc(var(--page-width) / var(--design-width));
    --top-spacing: 800px; /* 由 JS 动态更新 */
}

.container {
    padding: 0;
    max-width: none;
}

.ui-layer {
    position: relative;
    width: var(--page-width);
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: calc(120 * var(--scale));
}

/* 首页布局 */
.page-index .index-layout {
    padding-top: var(--top-spacing);
}

.page-index .index-layout .function-buttons {
    position: relative;
    left: calc(80 * var(--scale));
    width: calc(965 * var(--scale));
    margin: 0;
    gap: calc(30 * var(--scale));
    display: flex;
    justify-content: space-between;
}

.page-index .index-layout .function-btn {
    width: calc(300 * var(--scale));
    max-width: none;
    background: transparent;
    border: none;
    box-shadow: none;
}

.page-index .index-layout .exchange-platform {
    position: relative;
    margin-top: calc(40 * var(--scale));
    margin-bottom: calc(40 * var(--scale));
    left: 50%;
    transform: translateX(-50%);
    width: calc(985 * var(--scale));
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.page-index .index-layout .exchange-platform img {
    width: 100%;
    height: auto;
    display: block;
}

.page-index .index-layout .winning-records {
    position: relative;
    margin-top: calc(40 * var(--scale));
    left: calc(70 * var(--scale));
    width: calc(985 * var(--scale));
}

.page-index .index-layout .records-header h2 {
    font-size: calc(93 * var(--scale));
    color: #fff;
    -webkit-text-stroke: 4px #FF78B3;
    text-stroke: 4px #FF78B3;
    font-weight: 900;
    paint-order: stroke fill;
}

.page-index .index-layout .records-header p {
    font-size: calc(24 * var(--scale));
    margin-top: calc(-5 * var(--scale));
    color: #fff;
}

.page-index .index-layout .records-container {
    padding: calc(20 * var(--scale));
    border-radius: calc(40 * var(--scale));
    background: #FFB6D9; /* 更加接近设计稿的实色 */
}

.page-index .index-layout .records-table-wrapper {
    max-height: calc(800 * var(--scale));
    border-radius: calc(30 * var(--scale));
    background: #FFFFFF; /* 白色背景 */
    padding: 10px;
}

.page-index .index-layout .records-table th {
    font-size: calc(26 * var(--scale));
    background: #FFFFFF;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.page-index .index-layout .records-table td {
    font-size: calc(24 * var(--scale));
    color: #333;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: calc(8 * var(--scale)) calc(6 * var(--scale));
    line-height: 1.2;
}

.page-index .index-layout .records-table tbody tr {
    background: #FFFFFF;
}

.page-index .index-layout .records-table tbody tr:hover {
    background: #FFFFFF;
}

/* 兑换页面布局 */
.page-redeem .redeem-layout {
    padding-top: var(--top-spacing);
}

.page-redeem .redeem-layout .redeem-title {
    position: relative;
    width: 100%;
    text-align: center;
}

.page-redeem .redeem-layout .redeem-title h1 {
    font-size: calc(72 * var(--scale));
    font-weight: 900;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.page-redeem .redeem-layout .redeem-form {
    position: relative;
    margin-top: calc(80 * var(--scale));
    left: 50%;
    transform: translateX(-50%);
    width: calc(900 * var(--scale));
    background: transparent;
}

.page-redeem .redeem-layout .form-label {
    font-size: calc(34 * var(--scale));
    margin-bottom: calc(20 * var(--scale));
    color: #fff;
    font-weight: 700;
}

.page-redeem .redeem-layout .form-input {
    height: calc(130 * var(--scale));
    font-size: calc(32 * var(--scale));
    border-radius: calc(65 * var(--scale));
    border: calc(6 * var(--scale)) solid #FFB6D9;
    background: #fff;
    text-align: center;
}

.page-redeem .redeem-layout .redeem-btn {
    height: calc(140 * var(--scale));
    font-size: calc(40 * var(--scale));
    margin-top: calc(50 * var(--scale));
    background: linear-gradient(135deg, #9B7FED 0%, #7B68EE 100%);
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
}

/* 仓库页面布局 */
.page-warehouse .warehouse-layout {
    padding-top: var(--top-spacing);
}

/* 顶部输入区 - 粉色圆角框 带白边 */
.page-warehouse .warehouse-layout .warehouse-header {
    position: relative;
    left: calc(60 * var(--scale));
    width: calc(1005 * var(--scale));
    background: #BD3772;
    border-radius: calc(60 * var(--scale));
    padding: calc(22 * var(--scale)) calc(28 * var(--scale));
    border: calc(6 * var(--scale)) solid #fff;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.page-warehouse .warehouse-layout .input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: calc(18 * var(--scale));
    margin-bottom: 0;
    width: 100%;
}

.page-warehouse .warehouse-layout .form-input {
    flex: 1;
    height: calc(104 * var(--scale));
    border-radius: calc(50 * var(--scale));
    font-size: calc(32 * var(--scale));
    border: calc(4 * var(--scale)) solid #fff;
    background: #BD3772;
    color: #fff;
    text-align: center;
    padding: 0 calc(25 * var(--scale));
    line-height: calc(104 * var(--scale));
    box-sizing: border-box;
}

.page-warehouse .warehouse-layout .form-input::placeholder {
    color: #fff;
    font-size: calc(32 * var(--scale));
}

.page-warehouse .warehouse-layout .btn-check {
    flex-shrink: 0;
    width: calc(160 * var(--scale));
    height: calc(104 * var(--scale));
    font-size: calc(36 * var(--scale));
    font-weight: 900;
    border-radius: calc(50 * var(--scale));
    background: #BD3772;
    color: #fff;
    border: calc(4 * var(--scale)) solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
}

/* 标题容器 - 粉色框包含标题和状态按钮 */
.page-warehouse .warehouse-layout .warehouse-title {
    position: relative;
    margin-bottom: calc(8 * var(--scale));
    width: 100%;
    background: #FF78B3;
    border-radius: calc(40 * var(--scale));
    padding: calc(22 * var(--scale)) calc(30 * var(--scale)) calc(20 * var(--scale));
    text-align: center;
}

.page-warehouse .warehouse-layout .warehouse-title h1 {
    font-size: calc(72 * var(--scale));
    font-weight: 900;
    color: #fff;
    margin: 0 0 calc(6 * var(--scale)) 0;
    text-shadow:
        -2px -2px 0 #E54488,
        2px -2px 0 #E54488,
        -2px 2px 0 #E54488,
        2px 2px 0 #E54488;
}

/* 状态切换按钮 - 紫色圆角按钮 在标题框内部 */
.page-warehouse .warehouse-layout .warehouse-tabs {
    display: flex;
    justify-content: center;
    gap: calc(10 * var(--scale));
}

.page-warehouse .warehouse-layout .tab-btn {
    padding: calc(26 * var(--scale)) calc(78 * var(--scale));
    font-size: calc(42 * var(--scale));
    font-weight: 900;
    border-radius: calc(50 * var(--scale));
    background: #8F51A6;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-warehouse .warehouse-layout .tab-btn.active {
    background: #8F51A6;
}

/* 仓库内容区 - 大粉色圆角框 带白边 */
.page-warehouse .warehouse-layout .warehouse-content {
    position: relative;
    margin-top: calc(8 * var(--scale));
    left: calc(60 * var(--scale));
    width: calc(1005 * var(--scale));
    height: calc(980 * var(--scale));
    background: #FF78B3;
    border-radius: calc(50 * var(--scale));
    border: calc(6 * var(--scale)) solid #fff;
    padding: calc(24 * var(--scale)) calc(26 * var(--scale));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 商品网格 - 4列 可滚动 */
.page-warehouse .warehouse-layout .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(18 * var(--scale));
    margin: 0;
}

/* 商品卡片 - 白色圆角卡片 带白边 */
.page-warehouse .warehouse-layout .product-item {
    background: transparent; /* 空格子透明 */
    border-radius: calc(25 * var(--scale));
    border: calc(3 * var(--scale)) solid #fff;
    padding: calc(10 * var(--scale));
    aspect-ratio: 0.78; /* 接近3:4 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-warehouse .warehouse-layout .product-item.has-product {
    background: #fff;
}

.page-warehouse .warehouse-layout .product-item img {
    width: 90%;
    height: auto;
    max-height: 65%;
    object-fit: contain;
    margin-bottom: calc(8 * var(--scale));
}

.page-warehouse .warehouse-layout .product-item .name {
    font-size: calc(22 * var(--scale));
    color: #333;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.page-warehouse .warehouse-layout .product-item .status {
    font-size: calc(18 * var(--scale));
    color: #666;
    margin-top: calc(4 * var(--scale));
}

/* 发货按钮 - 橙红色圆角按钮 带白边 */
.page-warehouse .warehouse-layout .ship-btn {
    position: relative;
    margin-top: calc(40 * var(--scale));
    left: 50%;
    transform: translateX(-50%);
    width: calc(650 * var(--scale));
    height: calc(110 * var(--scale));
    font-size: calc(44 * var(--scale));
    font-weight: 900;
    background: #69375C;
    color: #fff;
    border: calc(5 * var(--scale)) solid #FF78B3;
    border-radius: calc(55 * var(--scale));
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.page-warehouse .warehouse-layout .ship-btn:active {
    transform: translateX(-50%) scale(0.98);
}

/* 底部说明文字 */
.page-warehouse .warehouse-layout .warehouse-note {
    position: relative;
    margin-top: calc(15 * var(--scale));
    margin-bottom: calc(30 * var(--scale));
    text-align: center;
    font-size: calc(24 * var(--scale));
    color: #E74A3B;
    line-height: 1.5;
}

/* 空状态提示 */
.page-warehouse .warehouse-layout .empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: calc(28 * var(--scale));
    text-align: center;
}

/* 仓库页强制对齐覆盖（确保最新样式生效） */
.page-warehouse .warehouse-layout .warehouse-header {
    display: flex !important;
    align-items: center !important;
}

.page-warehouse .warehouse-layout .input-group {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.page-warehouse .warehouse-layout .form-input {
    height: calc(104 * var(--scale)) !important;
    line-height: calc(104 * var(--scale)) !important;
    font-size: calc(32 * var(--scale)) !important;
    text-align: center !important;
}

.page-warehouse .warehouse-layout .btn-check {
    height: calc(104 * var(--scale)) !important;
    font-size: calc(36 * var(--scale)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.page-warehouse .warehouse-layout .warehouse-title {
    margin-bottom: calc(16 * var(--scale)) !important;
}

.page-warehouse .warehouse-layout .warehouse-title h1 {
    font-size: calc(58 * var(--scale)) !important;
    margin-bottom: calc(16 * var(--scale)) !important;
}

.page-warehouse .warehouse-layout .warehouse-tabs {
    gap: calc(16 * var(--scale)) !important;
}

.page-warehouse .warehouse-layout .tab-btn {
    padding: calc(20 * var(--scale)) calc(60 * var(--scale)) !important;
    font-size: calc(34 * var(--scale)) !important;
    font-weight: 800 !important;
}

.page-warehouse .warehouse-layout .warehouse-content {
    margin-top: calc(18 * var(--scale)) !important;
}

/* 发货页面布局 */
.page-ship .ship-layout {
    padding-top: var(--top-spacing);
}

.page-ship .ship-layout .ship-title {
    position: relative;
    text-align: center;
}

.page-ship .ship-layout .ship-title h1 {
    font-size: calc(72 * var(--scale));
    font-weight: 900;
}

.page-ship .ship-layout .ship-form {
    position: relative;
    margin-top: calc(80 * var(--scale));
    width: calc(900 * var(--scale));
}

.page-ship .ship-layout .form-input {
    height: calc(120 * var(--scale));
    border: calc(6 * var(--scale)) solid #FFB6D9;
}

.page-ship .ship-layout .ship-submit-btn {
    height: calc(140 * var(--scale));
    font-size: calc(40 * var(--scale));
    background: #7B68EE;
}

.page-ship .ship-layout .ship-notice {
    position: relative;
    margin-top: calc(80 * var(--scale));
    left: calc(70 * var(--scale));
    width: calc(985 * var(--scale));
    background: rgba(45, 27, 61, 0.9);
    border: calc(6 * var(--scale)) solid #FFB6D9;
}

@media (max-width: 480px) {
    .page-index .index-layout .records-header h2 {
        font-size: calc(93 * var(--scale));
    }
}
