/* 蛋糕拼单 - 移动端样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #fdf6f0;
    color: #333;
    line-height: 1.6;
    padding-bottom: 80px;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 20px;
    text-align: center;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(255, 154, 158, 0.3);
}

.header h1 { font-size: 22px; font-weight: 700; }
.header p { font-size: 13px; opacity: 0.9; margin-top: 4px; }

/* 容器 */
.container { max-width: 480px; margin: 0 auto; padding: 16px; }

/* 卡片 */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.15s;
}

.card:active { transform: scale(0.98); }

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.card-shop {
    font-size: 13px;
    color: #ff7e7e;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 13px;
    color: #888;
    line-height: 1.8;
}

.card-meta span { margin-right: 12px; }

.card-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-open { background: #e8f5e9; color: #2e7d32; }
.status-matched { background: #fff3e0; color: #e65100; }
.status-closed { background: #f5f5f5; color: #999; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.card-time {
    font-size: 12px;
    color: #aaa;
}

.card-action {
    display: inline-block;
    background: #ff9a9e;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.card-action:active { background: #e88589; }
.card-action-disabled { background: #ddd; pointer-events: none; }

/* 按钮 */
.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.15s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 154, 158, 0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-danger {
    background: #fee;
    color: #e53935;
}

.btn-share {
    background: #fff;
    color: #ff9a9e;
    border: 2px solid #ff9a9e;
}

/* 表单 */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px;
}

.form-group label .required { color: #e53935; }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    background: #fafafa;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #ff9a9e;
    background: #fff;
}

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

.form-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

/* 详情页 */
.detail-section { margin-bottom: 20px; }

.detail-label {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 2px;
}

.detail-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.contact-box {
    background: #fff8e1;
    border: 2px dashed #ffb300;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-top: 12px;
}

.contact-box .label {
    font-size: 13px;
    color: #f57f17;
    margin-bottom: 4px;
}

.contact-box .value {
    font-size: 20px;
    font-weight: 700;
    color: #e65100;
}

/* 提示 */
.alert {
    background: #fff3e0;
    border-radius: 10px;
    padding: 12px;
    font-size: 13px;
    color: #e65100;
    margin-bottom: 12px;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #ccc;
}

.empty-state .emoji { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; color: #aaa; }

/* 底部操作栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    z-index: 99;
}

.bottom-bar .container {
    padding: 0;
    display: flex;
    gap: 10px;
}

.bottom-bar .btn { flex: 1; font-size: 14px; padding: 12px; }

/* 分享页特殊样式 */
.share-body {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.share-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.share-card .cake-icon { font-size: 64px; margin-bottom: 12px; }
.share-card h2 { font-size: 22px; margin-bottom: 4px; }
.share-card .shop-name { color: #ff7e7e; font-size: 14px; margin-bottom: 16px; }

.share-info { margin: 16px 0; font-size: 14px; color: #666; line-height: 2; }
.share-info strong { color: #333; }

.share-qr {
    width: 120px;
    height: 120px;
    margin: 16px auto;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #aaa;
}

.share-note { font-size: 13px; color: #888; margin-top: 8px; }

/* 加入弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 380px;
    width: 100%;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal h3 { font-size: 18px; margin-bottom: 16px; text-align: center; }
.modal .form-group { margin-bottom: 12px; }
.modal .btn { margin-top: 8px; }

/* 响应式 */
@media (min-width: 600px) {
    .container { max-width: 480px; }
    body { background: #f0ebe6; }
    .header { border-radius: 0 0 20px 20px; }
}

/* Toast通知 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 300;
    display: none;
    animation: fadeIn 0.2s;
    text-align: center;
    max-width: 80%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.badge {
    display: inline-block;
    background: #ff9a9e;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    margin-left: 4px;
}
