/* =========================
   全局重置
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #f8f9fa;
    color: #222;
    font-size: 16px;
    line-height: 1.6;
}

/* =========================
   顶部导航（还原原图）
========================= */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e6e9f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.tab-active {
    background: #e8f0ff;
    color: #2060e8;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
}

.pay-btn {
    background: #ed333b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 16px;
}

/* =========================
   容器
========================= */
.container {
    padding: 14px 16px 80px;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================
   卡片区块（还原原图白色卡片）
========================= */
.card-block {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* =========================
   标题（还原原图：蓝色竖线 + 红色小字）
========================= */
.block-title {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    border-left: 4px solid #2060e8;
    padding-left: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.red-small-text {
    color: #ed333b;
    font-size: 13px;
    font-weight: normal;
}

/* =========================
   任务列表
========================= */
.req-list {
    padding-left: 22px;
    font-size: 15px;
    color: #444;
    line-height: 2;
}

.req-list li {
    margin-bottom: 4px;
}

/* =========================
   关键词 & 话术标签（还原原图浅蓝底色）
========================= */
.keyword-wrap,
.talk-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-tag,
.talk-tag {
    padding: 10px 14px;
    background: #f2f5fa;
    border-radius: 6px;
    font-size: 15px;
    color: #2088f0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.keyword-tag:active,
.talk-tag:active {
    background: #dce8ff;
}

/* =========================
   商品图片
========================= */
.preview-img-wrap {
    margin-top: 8px;
    text-align: center;
}

.preview-img {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
}

/* =========================
   大图预览
========================= */
.img-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.big-img {
    max-width: 92%;
    max-height: 90vh;
}

/* =========================
   复制提示 Toast
========================= */
.copy-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 9999;
    display: none;
    pointer-events: none;
}

/* =========================
   手机端适配（关键！）
========================= */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .top-nav {
        padding: 10px 12px;
    }

    .tab-active,
    .pay-btn {
        font-size: 15px;
        padding: 8px 14px;
    }

    .container {
        padding: 10px 12px 80px;
    }

    .card-block {
        padding: 16px 14px;
        border-radius: 10px;
    }

    .block-title {
        font-size: 17px;
    }

    .keyword-tag,
    .talk-tag {
        font-size: 14px;
        padding: 10px 12px;
    }

    .req-list {
        font-size: 15px;
    }
}

/* =========================
   现代输入框（App 风格）
========================= */
.input-modern {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    background: #f5f6f8;
    border: none;
    border-radius: 10px;
    color: #222;
    outline: none;
    transition: all 0.2s;
}

.input-modern:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(32, 96, 232, 0.25);
}

/* 上传区域 */
.upload-area {
    display: block;
    width: 100%;
    padding: 22px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    text-align: center;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-area:active {
    border-color: #2060e8;
    color: #2060e8;
}
.upload-area input[type="file"] {
    display: none;
}

/* =========================
   结算提交按钮（拉长 + 加大）
========================= */
button[name="submit_checkout"] {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 6px;
    letter-spacing: 1px;
}