/* =========================================================
   前台页面样式：喜庆礼品卡风格（红金配色）
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #fdf6ec; /* 暖色米黄底，更有礼品/年货氛围 */
    color: #333;
    line-height: 1.6;
}

.page-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 15px 60px;
}

/* 顶部标题区 */
.header-bar {
    text-align: center;
    padding: 30px 10px 25px;
}

.header-bar h1 {
    font-size: 22px;
    color: #b5292a; /* 中国红 */
    font-weight: 600;
}

.header-bar .sub-title {
    margin-top: 8px;
    font-size: 13px;
    color: #946b3f;
}

/* 卡片容器：顶部加一条金色细线作为点缀 */
.card-box {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(181, 41, 42, 0.08);
    border-top: 3px solid #d4af37;
}

.box-title {
    font-size: 16px;
    color: #222;
    margin-bottom: 18px;
    padding-left: 10px;
    border-left: 4px solid #b5292a;
}

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

.form-item label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.form-item input,
.form-item textarea {
    width: 100%;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #e6dcc8;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
    background: #fffdf8;
}

.form-item input:focus,
.form-item textarea:focus {
    border-color: #b5292a;
    background: #fff;
}

.form-item input[readonly] {
    background: #f5f0e6;
    color: #999;
}

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

.form-item-1-3 {
    flex: 1;
    min-width: 0;
}

/* 提示文字 */
.form-tip {
    min-height: 18px;
    font-size: 13px;
    color: #e64545;
    margin-bottom: 10px;
}

/* 按钮 */
.btn-primary {
    display: block;
    width: 100%;
    padding: 13px 0;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, #c8302f 0%, #a31f1f 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-primary:disabled {
    background: #ddb9b9;
    cursor: not-allowed;
}

.btn-link {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #946b3f;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* 礼品信息展示区 */
.gift-info {
    background: #fbf6ec;
    border-radius: 8px;
    padding: 15px;
}

.gift-info-row {
    font-size: 14px;
    color: #555;
    padding: 5px 0;
}

.gift-info-row .label {
    color: #999;
}

.gift-info-row .highlight {
    color: #b5292a;
    font-weight: 600;
}

/* 状态标签（未兑换/已兑换/已失效） */
.tag-status {
    display: inline-block;
    padding: 3px 12px;
    font-size: 12px;
    border-radius: 14px;
}

.tag-status-unused {
    background: #fdecea;
    color: #c8302f;
}

.tag-status-used {
    background: #e6f7ed;
    color: #15a35a;
}

.tag-status-expired {
    background: #f1f1f1;
    color: #888;
}

/* ---------------- 滑块验证组件 ---------------- */
.slider-verify {
    position: relative;
}

.slider-track {
    position: relative;
    height: 42px;
    background: #f5f0e6;
    border: 1px solid #e6dcc8;
    border-radius: 6px;
    overflow: hidden;
}

.slider-track-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 42px;
    font-size: 13px;
    color: #999;
    z-index: 1;
    user-select: none;
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: #f6d9a8;
    transition: none;
}

.slider-track-ok .slider-track-text {
    color: #fff;
}

.slider-track-ok {
    background: #e6f7ed;
}

.slider-btn {
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #d4af37;
    border-radius: 6px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    color: #b5292a;
    cursor: pointer;
    user-select: none;
    z-index: 2;
}

.slider-btn-ok {
    background: #15a35a;
    border-color: #15a35a;
    color: #fff;
}

/* ---------------- 物流状态时间轴 ---------------- */
.ship-timeline {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.ship-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 70px;
}

.ship-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid #ddd;
}

.ship-step-done .ship-dot {
    background: #b5292a;
    border-color: #b5292a;
}

.ship-label {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    text-align: center;
}

.ship-step-done .ship-label {
    color: #b5292a;
    font-weight: 600;
}

.ship-line {
    flex: 1 1 auto;
    height: 2px;
    background: #ddd;
    margin-bottom: 22px;
}

.ship-line-done {
    background: #b5292a;
}

.privacy-tip {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
    line-height: 1.6;
}

/* 提交成功页面 */
.success-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #15a35a;
    color: #fff;
    font-size: 32px;
    text-align: center;
    margin: 10px auto 18px;
}

.success-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.footer-tip {
    text-align: center;
    font-size: 12px;
    color: #b6a37a;
    margin-top: 20px;
}

/* 手机端适配 */
@media (max-width: 480px) {
    .page-wrap {
        padding: 12px 10px 40px;
    }
    .card-box {
        padding: 18px 14px;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .ship-step {
        width: 50px;
    }
    .ship-label {
        font-size: 11px;
    }
}
