/* ========== 企业痛点破局生态链 H5 样式（移动端优先） ========== */
:root {
    --brand: #1677ff;
    --brand-dark: #0d5bd6;
    --ok: #19be6b;
    --warn: #ff9900;
    --danger: #ed4014;
    --text: #17233d;
    --text-sub: #808695;
    --bg: #f4f6f9;
    --card: #ffffff;
    --line: #e8eaef;
    --radius: 12px;
    --shadow: 0 2px 10px rgba(23, 35, 61, .06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
p { margin: 0 0 10px; }

/* ---------- 页头 ---------- */
.h5-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(6px);
}

.h5-brand a { font-size: 16px; font-weight: 700; color: var(--text); }

.h5-header-link {
    font-size: 13px;
    padding: 4px 10px;
    border: 1px solid var(--brand);
    border-radius: 14px;
    color: var(--brand);
}

.h5-main {
    max-width: 640px;
    margin: 0 auto;
    padding: 14px 14px 80px;
}

.h5-footer {
    padding: 26px 0 40px;
    text-align: center;
    color: #b3b9c4;
    font-size: 12px;
}

/* ---------- 卡片与区块 ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 14px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    margin: 6px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--brand);
}

/* ---------- 主视觉（落地页） ---------- */
.hero {
    background: linear-gradient(135deg, #1677ff 0%, #0d5bd6 55%, #3a7bd5 100%);
    border-radius: var(--radius);
    padding: 28px 20px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 6px 18px rgba(13, 91, 214, .25);
}
.hero h1 { font-size: 22px; margin: 0 0 10px; letter-spacing: .5px; }
.hero p { font-size: 13px; opacity: .92; margin: 0; }

.step-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 13.5px;
}
.step-no {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e8f1ff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}
.step-txt { color: var(--text-sub); }
.step-txt b { color: var(--text); font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    height: 44px;
    padding: 0 22px;
    cursor: pointer;
    transition: opacity .15s;
    text-decoration: none;
    box-sizing: border-box;
}
.btn:active { opacity: .8; }
.btn-primary { background: var(--brand); color: #fff; width: 100%; }
.btn-primary:disabled { background: #c9d6ea; }
.btn-outline {
    background: #fff;
    color: var(--brand);
    border: 1px solid var(--brand);
    width: 100%;
}
.btn-sm { font-size: 13px; height: 34px; padding: 0 14px; border-radius: 17px; width: auto; }

.btn-fixed-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
    z-index: 20;
}
.btn-fixed-bottom .btn { max-width: 640px; margin: 0 auto; display: flex; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-label .opt { color: var(--text-sub); font-weight: 400; font-size: 12px; }
.form-control {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    background: #fff;
    color: var(--text);
    outline: none;
}
.form-control:focus { border-color: var(--brand); }
textarea.form-control { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23808695' stroke-width='1.6' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }

.hint { font-size: 12px; color: var(--text-sub); margin-top: 4px; }
.msg-error {
    background: #fde8e4;
    color: var(--danger);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}
.msg-ok {
    background: #e8f8ef;
    color: var(--ok);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ---------- 数据面板 ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.stat-item {
    text-align: center;
    background: #f7f9fc;
    border-radius: 10px;
    padding: 12px 4px;
}
.stat-num { font-size: 22px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-sub); }

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.list-item:last-child { border-bottom: none; }
.list-title { font-size: 14.5px; font-weight: 600; }
.list-sub { font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }
.tag {
    flex: none;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8f1ff;
    color: var(--brand);
}
.tag.warn { background: #fff3e0; color: var(--warn); }
.tag.ok { background: #e8f8ef; color: var(--ok); }

.invite-box {
    background: #f0f6ff;
    border: 1px dashed var(--brand);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    word-break: break-all;
}
.invite-box .invite-url { flex: 1; font-size: 13px; color: var(--brand-dark); }

.divider { height: 1px; background: var(--line); margin: 12px 0; }

/* ---------- toast ---------- */
.h5-toast {
    position: fixed;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    background: rgba(23, 35, 61, .88);
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    max-width: 80%;
    text-align: center;
}
.h5-toast.show { opacity: 1; }

/* ---------- 表单增强（提交页） ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}
.radio-item:has(input:checked) {
    border-color: var(--brand);
    background: #f0f6ff;
    color: var(--brand);
    font-weight: 600;
}
.radio-item input { accent-color: var(--brand); width: 15px; height: 15px; }

/* 明细行（行业前列企业） */
.item-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: flex-start;
}
.item-row .item-name { flex: 3; min-width: 0; }
.item-row .item-output { flex: 2; min-width: 0; }
.item-del {
    flex: none;
    width: 34px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.item-del:active { color: var(--danger); }

/* 上传区 */
.up-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.up-btn {
    flex: 1;
    min-width: 92px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--brand);
    border-radius: 10px;
    color: var(--brand);
    font-size: 13.5px;
    background: #f0f6ff;
    cursor: pointer;
    overflow: hidden;
}
.up-btn:active { opacity: .8; }
.up-input { display: none; }

.up-list { list-style: none; margin: 0; padding: 0; }
.up-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.up-item:last-child { border-bottom: none; }
.up-type {
    flex: none;
    font-size: 11px;
    padding: 1px 7px;
    border-radius: 9px;
    background: #e8f1ff;
    color: var(--brand);
}
.up-type-2 { background: #fff3e0; color: var(--warn); }
.up-type-3 { background: #eef0f3; color: var(--text-sub); }
.up-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-size { flex: none; color: var(--text-sub); font-size: 12px; }
.up-item .item-del { height: 30px; font-size: 18px; }

/* ---------- 推广端列表 / 详情 / 团队（M3） ---------- */
.filter-tabs { display: flex; gap: 6px; padding: 4px 4px 8px; }
.ftab {
    flex: 1;
    text-align: center;
    padding: 7px 2px;
    border-radius: 8px;
    color: var(--text-sub);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ftab.on { background: #e8f1ff; color: var(--brand); font-weight: 600; }

.client-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
}
.client-row:last-child { border-bottom: none; }
.client-name {
    font-size: 14.5px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-ghost { background: #eef0f3; color: var(--text-sub); }

/* 详情键值 */
.kv-row {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed var(--line);
}
.kv-row:last-child { border-bottom: none; }
.kv-k { flex: none; width: 76px; color: var(--text-sub); }
.kv-v { flex: 1; min-width: 0; word-break: break-all; }

/* 时间轴 */
.timeline { padding-left: 2px; }
.tl-item { position: relative; padding: 0 0 14px 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 15px;
    bottom: -2px;
    width: 1px;
    background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--brand);
}
.tl-dot.ok-dot { background: var(--ok); }
.tl-txt { font-size: 13.5px; }
.tl-time { float: right; font-size: 12px; color: var(--text-sub); }

.qr-img {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    flex: none;
}

/* 提交表单草稿条 */
.draft-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    color: #a05e03;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}
.draft-bar button {
    margin-left: auto;
    border: none;
    background: transparent;
    color: var(--brand);
    font-size: 13px;
    cursor: pointer;
    flex: none;
}

/* 成功页 */
.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: #e8f8ef;
    color: var(--ok);
    font-size: 34px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
