/* ============================================
   情侣点餐专属样式 couple.css
   ============================================ */

/* ============ 绑定页 ============ */
.bind-bg {
    background: linear-gradient(160deg, #FF6B8A 0%, #FF9A9E 50%, #FECFEF 100%);
    padding: 48px 24px 40px;
    text-align: center;
}

.boy-bind-bg {
    background: linear-gradient(160deg, #6B8AFF 0%, #9AB1FF 50%, #CFDEFF 100%);
}

.bind-hearts {
    font-size: 48px;
    margin-bottom: 10px;
    animation: float 2s ease-in-out infinite;
}

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

.bind-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bind-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.bind-card {
    background: #fff;
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    padding: 28px 20px 24px;
    position: relative;
    z-index: 1;
}

.bind-row {
    margin-bottom: 16px;
}

.bind-row label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
}

.bind-row input {
    width: 100%;
    border: 1.5px solid #F0F0F0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #FAFAFA;
}

.bind-row input:focus {
    border-color: #FF6B8A;
    background: #fff;
}

.role-pick {
    display: flex;
    gap: 12px;
}

.role-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #F0F0F0;
    border-radius: 12px;
    background: #FAFAFA;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.role-btn.active {
    border-color: #FF6B8A;
    background: #FFF0F3;
    color: #FF6B8A;
    font-weight: 600;
}

.bind-divider {
    text-align: center;
    margin: 20px 0 16px;
    position: relative;
}

.bind-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #F0F0F0;
}

.bind-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    color: #AAA;
}

.btn-create-couple {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF6B8A, #FF9A9E);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,107,138,0.35),
                inset 0 0.5px 0 rgba(255,255,255,0.35);
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-create-couple:hover {
    box-shadow: 0 6px 20px rgba(255,107,138,0.5),
                inset 0 0.5px 0 rgba(255,255,255,0.35);
}

.btn-create-couple:active { transform: scale(0.98); }

.or-row {
    text-align: center;
    font-size: 12px;
    color: #AAA;
    margin: 12px 0;
}

.join-row {
    display: flex;
    gap: 10px;
}

.join-row input {
    flex: 1;
    border: 1.5px solid #F0F0F0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    background: #FAFAFA;
    letter-spacing: 2px;
    font-weight: 600;
}

.join-row input:focus {
    border-color: #FF6B8A;
    background: #fff;
}

.btn-join-couple {
    flex-shrink: 0;
    padding: 0 20px;
    background: #FF6B8A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    box-shadow: 0 2px 8px rgba(255,107,138,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-join-couple:hover {
    background: #FF7A94;
    box-shadow: 0 4px 14px rgba(255,107,138,0.4);
}

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

/* 关系码展示 */
.code-display {
    background: #fff;
    padding: 24px 20px;
    text-align: center;
    border-top: 1px solid #F5F5F5;
}

.code-label {
    font-size: 14px;
    color: #888;
    margin-bottom: 14px;
}

.couple-code-big {
    font-size: 32px;
    font-weight: 900;
    color: #FF6B8A;
    letter-spacing: 4px;
    background: #FFF0F3;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 14px;
    border: 2px dashed #FFB3C1;
}

.btn-copy-code {
    background: #FF6B8A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    box-shadow: 0 2px 8px rgba(255,107,138,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-copy-code:hover {
    background: #FF7A94;
    box-shadow: 0 4px 14px rgba(255,107,138,0.4);
}

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

.code-hint {
    font-size: 12px;
    color: #AAA;
    margin-bottom: 10px;
}

/* 等待动画 */
.waiting-dot {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.waiting-dot span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF6B8A;
    animation: bounce-dot 1.2s ease-in-out infinite;
}

.waiting-dot span:nth-child(2) { animation-delay: 0.2s; }
.waiting-dot span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ============ 情侣顶部头部 ============ */
.couple-header {
    background: linear-gradient(135deg, #FF6B8A 0%, #FECFEF 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.couple-me, .couple-partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.couple-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 2px solid rgba(255,255,255,0.6);
}

.partner-avatar { background: rgba(255,255,255,0.25); }

.couple-name {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    max-width: 60px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.couple-heart-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.heart-beat {
    font-size: 28px;
    animation: heartbeat 1.4s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    70% { transform: scale(1); }
}

.couple-status {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 8px;
}

.online-dot {
    position: absolute;
    bottom: 22px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: 2px solid rgba(255,255,255,0.7);
    transition: background 0.3s;
}

.online-dot.online { background: #4CAF50; }

/* ============ 情侣专属搜索栏 ============ */
.couple-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 10px 14px;
    border-bottom: 1px solid #F5F5F5;
}

.couple-search-bar input {
    flex: 1;
    border: none;
    background: #F7F7F7;
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 13px;
    outline: none;
}

/* ============ 购物车发单按钮（女友专属）============ */
.couple-cart-bar {
    background: linear-gradient(135deg, #FF6B8A, #FF9A9E) !important;
}

.btn-send-order {
    background: rgba(255,255,255,0.25) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.5) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ============ 发单弹窗 ============ */
.send-modal-card {
    background: #fff;
    border-radius: 24px;
    padding: 24px 20px 20px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.send-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: #1A1A1A;
    text-align: center;
    margin-bottom: 16px;
}

.send-modal-items {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.send-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 14px;
}

.send-item-name { flex: 1; color: #1A1A1A; }
.send-item-qty { color: #888; margin: 0 8px; }
.send-item-price { color: #FF6B35; font-weight: 600; }

.send-modal-total {
    text-align: right;
    font-size: 14px;
    color: #888;
    margin-bottom: 14px;
}

.send-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B8A;
}

.send-remark-row input {
    width: 100%;
    border: 1.5px solid #F0F0F0;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    outline: none;
    background: #FAFAFA;
    margin-bottom: 16px;
}

.send-remark-row input:focus {
    border-color: #FF6B8A;
    background: #fff;
}

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

.btn-cancel-send {
    flex: 1;
    padding: 13px;
    border: 0.5px solid rgba(120,120,128,0.2);
    border-radius: 10px;
    background: rgba(120,120,128,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-cancel-send:hover {
    background: rgba(120,120,128,0.14);
    color: #555;
}

.btn-confirm-send {
    flex: 2;
    padding: 13px;
    background: linear-gradient(135deg, #FF6B8A, #FF9A9E);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,107,138,0.35),
                inset 0 0.5px 0 rgba(255,255,255,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-confirm-send:hover {
    box-shadow: 0 6px 18px rgba(255,107,138,0.5),
                inset 0 0.5px 0 rgba(255,255,255,0.3);
}

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

/* ============ 发送成功 / 确认弹窗 ============ */
.sent-card, .confirmed-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px 28px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.sent-icon, .confirmed-icon {
    font-size: 52px;
    margin-bottom: 12px;
    animation: pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.sent-title, .confirmed-title {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.sent-sub, .confirmed-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-close-sent, .btn-confirmed-ok {
    background: linear-gradient(135deg, #FF6B8A, #FF9A9E);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,107,138,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-close-sent:hover, .btn-confirmed-ok:hover {
    box-shadow: 0 6px 18px rgba(255,107,138,0.5),
                inset 0 0.5px 0 rgba(255,255,255,0.3);
}

.btn-close-sent:active, .btn-confirmed-ok:active { transform: scale(0.98); }

/* ============ 男友端 新订单弹窗 ============ */
.new-order-card {
    background: #fff;
    border-radius: 24px;
    padding: 28px 20px 22px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.new-order-ring {
    font-size: 44px;
    text-align: center;
    margin-bottom: 10px;
    animation: ring-shake 0.6s ease-in-out;
}

@keyframes ring-shake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(15deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(10deg); }
}

.new-order-title {
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.new-order-items {
    background: #FFF9FA;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.noti-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #F5F5F5;
    font-size: 14px;
}

.noti-item-row:last-child { border-bottom: none; }
.noti-item-name { flex: 1; }
.noti-item-qty { color: #888; margin: 0 8px; }
.noti-item-price { color: #FF6B35; font-weight: 600; }

.new-order-total {
    text-align: right;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.noti-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B8A;
}

.new-order-remark {
    background: #FFF3E0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remark-icon { font-size: 14px; }

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

.btn-reject-order {
    flex: 1;
    padding: 13px;
    border: 0.5px solid rgba(120,120,128,0.2);
    border-radius: 10px;
    background: rgba(120,120,128,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-reject-order:hover {
    background: rgba(120,120,128,0.14);
}

.btn-confirm-order {
    flex: 2;
    padding: 13px;
    background: linear-gradient(135deg, #34C759, #30D158);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52,199,89,0.35),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-confirm-order:hover {
    box-shadow: 0 6px 18px rgba(52,199,89,0.5),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
}

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

/* ============ 男友端主页 ============ */
.boy-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
    background: #fff;
    border-bottom: 1px solid #F5F5F5;
}

.history-title {
    margin-top: 8px;
}

.pending-badge {
    background: #FF6B8A;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 订单卡片 */
.order-item-card {
    background: #fff;
    margin: 0 0 1px;
    padding: 14px 16px;
    border-bottom: 1px solid #F5F5F5;
    cursor: pointer;
}

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

.order-from {
    font-size: 13px;
    color: #888;
}

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

.order-status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.status-pending-tag { background: #FFF3F5; color: #FF6B8A; }
.status-confirmed-tag { background: #E8F5E9; color: #4CAF50; }
.status-rejected-tag { background: #F5F5F5; color: #AAA; }

.order-dishes-summary {
    font-size: 14px;
    color: #1A1A1A;
    margin-bottom: 6px;
    line-height: 1.5;
}

.order-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-price-text {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B8A;
}

.btn-handle-order {
    background: #FF6B8A;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    box-shadow: 0 2px 8px rgba(255,107,138,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.25);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-handle-order:hover {
    background: #FF7A94;
    box-shadow: 0 4px 14px rgba(255,107,138,0.4);
}

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

/* ============ 底部操作栏（男友端）============ */
.boy-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #F0F0F0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    gap: 12px;
    z-index: 200;
}

.btn-go-order {
    flex: 1;
    background: linear-gradient(135deg, #FF6B8A, #FF9A9E);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255,107,138,0.3),
                inset 0 0.5px 0 rgba(255,255,255,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-go-order:hover {
    box-shadow: 0 6px 18px rgba(255,107,138,0.5),
                inset 0 0.5px 0 rgba(255,255,255,0.3);
}

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

.btn-unbind {
    background: rgba(120,120,128,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #AAA;
    border: 0.5px solid rgba(120,120,128,0.16);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-unbind:hover {
    background: rgba(120,120,128,0.14);
    color: #777;
}

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

/* 男友端情侣头部渐变 */
#main-page .couple-header {
    background: linear-gradient(135deg, #6B8AFF 0%, #A8C4FF 100%);
}
