/* 全局字体定义 - 阿里巴巴普惠体 */
@font-face {
    font-family: 'AliPuHui';
    src: url('/preorder/fonts/ali.woff2') format('woff2'),
         url('/preorder/fonts/ali.woff') format('woff');
    font-display: swap;
}
* { -webkit-tap-highlight-color: transparent; }
* { margin: 0; padding: 0; box-sizing: border-box; }
/* ===== 通用重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #FFF0C8;
    font-family: 'AliPuHui',"PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== 密码验证页面 ===== */
body.password-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.password-box {
    background: white;
    border-radius: 40px;
    padding: 40px 28px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 12px 30px rgba(250, 218, 221, 0.6);
    border: 2px solid #FADADD;
    text-align: center;
}

.password-box h2 {
    color: #e8879a;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.password-box input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #FADADD;
    border-radius: 30px;
    font-size: 1.1rem;
    margin-bottom: 16px;
    text-align: center;
    -webkit-appearance: none;
    box-sizing: border-box;
    max-width: 100%;
}

.password-box button {
    background: #f7b05e;
    color: white;
    border: none;
    padding: 14px 0;
    width: 100%;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(247, 176, 94, 0.4);
    -webkit-appearance: none;
    cursor: pointer;
}

.password-box .error {
    color: #ff4d6d;
    margin-bottom: 10px;
    font-weight: 500;
}

.back-link {
    margin-top: 20px;
    display: inline-block;
    color: #e8879a;
    text-decoration: none;
    font-weight: 600;
}

/* ===== 订单列表页面 ===== */
body.order-list-page {
    padding-top: 70px;   /* 给吸顶条留空间 */
    padding-bottom: 30px;
}

/* 顶部吸顶条 */
.sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 240, 200, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid #FADADD;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(250, 218, 221, 0.3);
}

.sticky-top-bar a {
    color: #e8879a;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sticky-top-bar .title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8879a;
    white-space: nowrap;
}

/* 微信提示条 */
.wechat-tip {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    margin: 0 16px 12px;
    border-radius: 30px;
    border: 1px solid #ffc107;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wechat-tip .close-tip {
    background: none;
    border: none;
    color: #856404;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 8px;
}

/* 订单卡片 */
.order-card {
    background: white;
    border-radius: 30px;
    padding: 20px 18px;
    margin: 0 16px 24px;
    border: 2px solid #FADADD;
    box-shadow: 0 4px 12px rgba(250, 218, 221, 0.4);
}

.order-meta {
    display: flex;
    justify-content: space-between;
    color: #e8879a;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #FADADD;
}

.data-row {
    display: flex;
    margin-bottom: 8px;
}

.data-label {
    font-weight: 700;
    color: #c98b9a;
    min-width: 80px;
}

.data-value {
    color: #4a3a42;
    word-break: break-word;
}

.print-btn {
    margin-top: 12px;
    background: #f7b05e;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid #FFF9F0;
    box-shadow: 0 4px 6px rgba(247, 176, 94, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    -webkit-appearance: none;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 16px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    border: 2px solid #FADADD;
    color: #e8879a;
    text-decoration: none;
    font-weight: 600;
    transition: 0.1s;
}

.pagination a:active {
    background: #FADADD;
}

.pagination .current {
    background: #f7b05e;
    color: white;
    border-color: #f7b05e;
}

.empty-msg {
    text-align: center;
    color: #c98b9a;
    padding: 40px;
    font-size: 1.2rem;
}

/* 下拉刷新提示 */
#pullRefresh {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    overflow: hidden;
    background: #f7b05e;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: height 0.2s;
    font-weight: 600;
}