/* ============================================================
   css/miniprogram.css — 小程序演示页专属样式（前缀 mp-）
   主色 var(--orange-600)；手机演示框用浅色界面，宫格用方块卡。
   断点：960px / 640px
   ============================================================ */

/* ---------- Hero ---------- */
.mp-hero {
    background:
        radial-gradient(circle at 10% 20%, rgba(249, 115, 22, .14), transparent 45%),
        linear-gradient(180deg, #fff7ed, #ffffff 75%);
    padding: 64px 0 84px;
}
.mp-hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 320px;
    gap: 56px;
    align-items: center;
}
.mp-hero-title { font-size: 38px; line-height: 1.28; margin: 14px 0 16px; }
.mp-hero-sub { color: var(--ink-500); font-size: 15.5px; margin-bottom: 26px; }
.mp-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.mp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.mp-btn-solid {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    box-shadow: 0 10px 22px rgba(234, 88, 12, .32);
}
.mp-btn-solid:hover { color: #fff; transform: translateY(-2px); }
.mp-btn-ghost { border: 1.5px solid var(--orange-300); color: var(--orange-700); background: #fff; }
.mp-btn-ghost:hover { background: var(--orange-50); color: var(--orange-600); }
.mp-btn-block { width: 100%; margin-top: 16px; }
.mp-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13.5px;
    color: var(--ink-500);
}
.mp-hero-points li {
    padding-left: 20px;
    position: relative;
}
.mp-hero-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* 手机框内嵌演示 */
.mp-phone {
    position: relative;
    width: 300px;
    margin: 0 auto;
    background: #fff;
    border: 10px solid var(--ink-900);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.mp-phone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px 2px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-900);
}
.mp-phone-bar span:first-child { width: 40px; }
.mp-phone-net { letter-spacing: 1px; }
.mp-phone-pill {
    width: 90px;
    height: 4px;
    background: var(--ink-900);
    border-radius: 4px;
    margin: 2px auto 6px;
}
.mp-phone-screen {
    background: linear-gradient(180deg, #fff7ed, #ffffff 45%);
    padding: 10px 12px 16px;
}
.mp-demo-head { margin-bottom: 10px; }
.mp-demo-head b { display: block; font-size: 15px; }
.mp-demo-head small { font-size: 10.5px; color: var(--ink-500); }
.mp-demo-search {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-pill);
    padding: 7px 12px;
    font-size: 11.5px;
    color: var(--ink-400);
    margin-bottom: 10px;
}
.mp-demo-banner {
    background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
}
.mp-demo-banner b { font-size: 12.5px; display: block; }
.mp-demo-banner small { font-size: 9.5px; opacity: .85; }
.mp-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.mp-demo-cell {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 8px 2px;
    text-align: center;
}
.mp-demo-cell i { font-style: normal; font-size: 15px; display: block; }
.mp-demo-cell em { font-style: normal; font-size: 9px; color: var(--ink-700); }
.mp-demo-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}
.mp-demo-ava {
    width: 28px; height: 28px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--orange-100);
    color: var(--orange-700);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}
.mp-demo-card div { flex: 1; min-width: 0; }
.mp-demo-card b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-demo-card small { font-size: 8.5px; color: var(--ink-500); }
.mp-demo-card em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--orange-600); }

/* ---------- 功能模块宫格 ---------- */
.mp-grid-sec { padding: 80px 0; }
.mp-module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.mp-module-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mp-module-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange-300);
    box-shadow: var(--shadow);
}
.mp-module-ico {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    display: grid; place-items: center;
    font-size: 26px;
    background: var(--orange-50);
    border-radius: 16px;
}
.mp-module-card h3 { font-size: 16px; margin-bottom: 6px; }
.mp-module-card p { font-size: 13px; color: var(--ink-500); }

/* ---------- 部署流程时间线 ---------- */
.mp-steps { background: #fff; border-top: 1px solid var(--ink-200); padding: 80px 0; }
.mp-step-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}
.mp-step-row::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-200), var(--orange-500), var(--orange-200));
}
.mp-step-card {
    position: relative;
    text-align: center;
    padding: 0 14px;
}
.mp-step-no {
    position: relative;
    z-index: 1;
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    display: grid; place-items: center;
    background: #fff;
    border: 3px solid var(--orange-500);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 800;
    color: var(--orange-700);
    box-shadow: 0 0 0 6px var(--orange-50);
}
.mp-step-time {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange-700);
    background: var(--orange-100);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}
.mp-step-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.mp-step-card p { font-size: 13px; color: var(--ink-500); }

/* ---------- 行业场景卡 ---------- */
.mp-scenes { padding: 80px 0; }
.mp-scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.mp-scene-card {
    background: linear-gradient(180deg, #fff, var(--ink-50));
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mp-scene-ico { font-size: 34px; }
.mp-scene-card h3 { font-size: 17px; }
.mp-scene-card p { font-size: 13.5px; color: var(--ink-500); flex: 1; }
.mp-scene-link { font-size: 13.5px; font-weight: 700; }

/* ---------- 运营后台能力 ---------- */
.mp-admin { padding: 80px 0; }
.mp-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 860px;
    margin: 0 auto 30px;
}
.mp-admin-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 16px 18px;
}
.mp-admin-check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    display: grid; place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--green);
    border-radius: 50%;
    margin-top: 2px;
}
.mp-admin-item b { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.mp-admin-item p { font-size: 14px; color: var(--ink-800, var(--ink-900)); margin-top: 2px; }

.mp-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--ink-900);
    border-radius: var(--radius-lg);
    padding: 26px 20px;
    gap: 16px;
}
.mp-kpi { text-align: center; }
.mp-kpi b {
    display: block;
    font-size: 28px;
    color: var(--orange-300);
    line-height: 1.2;
}
.mp-kpi span { font-size: 12.5px; color: var(--ink-300); }

/* ---------- 上线后支持表 ---------- */
.mp-support { padding: 80px 0; }
.mp-table-wrap {
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    max-width: 860px;
}
.mp-table th {
    background: var(--ink-900);
    color: #fff;
    text-align: left;
    padding: 13px 20px;
    font-size: 14px;
}
.mp-table td {
    padding: 13px 20px;
    font-size: 14px;
    color: var(--ink-700);
    border-top: 1px solid var(--ink-200);
    background: #fff;
}
.mp-table tbody tr:nth-child(even) td { background: var(--ink-50); }
.mp-table td b { color: var(--ink-900); }
.mp-support-note {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 860px;
    margin-top: 18px;
    background: var(--orange-50);
    border: 1px dashed var(--orange-300);
    border-radius: var(--radius);
    padding: 14px 20px;
}
.mp-support-ico { font-size: 24px; }
.mp-support-note p { font-size: 13.5px; color: var(--ink-700); }
.mp-support-note a { font-weight: 600; }

.mp-support-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 860px;
    margin-top: 16px;
}
.mp-support-col {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 18px 22px;
}
.mp-support-col b {
    display: block;
    font-size: 15px;
    color: var(--orange-700);
    margin-bottom: 10px;
}
.mp-support-col li {
    font-size: 13.5px;
    color: var(--ink-700);
    padding: 4px 0 4px 18px;
    position: relative;
}
.mp-support-col li::before {
    content: "·";
    position: absolute;
    left: 4px;
    color: var(--orange-500);
    font-weight: 800;
}

/* ---------- 版本审核折叠组 ---------- */
.mp-faq { background: #fff; border-top: 1px solid var(--ink-200); padding: 80px 0 90px; }
.mp-faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
}
.mp-accordion { display: grid; gap: 12px; }
.mp-acc-item {
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.mp-acc-item[open] {
    background: #fff;
    border-color: var(--orange-300);
    box-shadow: var(--shadow-sm);
}
.mp-acc-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    list-style: none;
}
.mp-acc-item summary::-webkit-details-marker { display: none; }
.mp-acc-arrow {
    flex-shrink: 0;
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: var(--orange-100);
    color: var(--orange-700);
    border-radius: 50%;
    font-weight: 800;
    transition: transform .2s ease;
}
.mp-acc-item[open] .mp-acc-arrow { transform: rotate(45deg); }
.mp-acc-body { padding: 0 20px 18px; }
.mp-acc-body p { font-size: 14px; color: var(--ink-500); }

.mp-faq-aside {
    position: sticky;
    top: 100px;
    background: linear-gradient(135deg, var(--orange-700), var(--orange-600));
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #fff;
    box-shadow: var(--shadow);
}
.mp-faq-aside h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.mp-faq-aside p { font-size: 14px; color: var(--orange-100); }
.mp-faq-aside a { color: #fff; text-decoration: underline; }
.mp-faq-aside .mp-btn-solid {
    background: #fff;
    color: var(--orange-700);
    box-shadow: none;
}
.mp-faq-aside .mp-btn-solid:hover { background: var(--orange-50); }

/* ---------- 响应式 960px ---------- */
@media (max-width: 960px) {
    .mp-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .mp-hero-sub { margin-left: auto; margin-right: auto; }
    .mp-hero-btns, .mp-hero-points { justify-content: center; }
    .mp-module-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-step-row { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
    .mp-step-row::before { display: none; }
    .mp-scene-grid { grid-template-columns: repeat(2, 1fr); }
    .mp-faq-layout { grid-template-columns: 1fr; gap: 30px; }
    .mp-faq-aside { position: static; }
    .mp-kpi-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 响应式 640px ---------- */
@media (max-width: 640px) {
    .mp-hero { padding: 44px 0 56px; }
    .mp-hero-title { font-size: 25px; }
    .mp-grid-sec, .mp-steps, .mp-scenes, .mp-faq { padding: 54px 0; }
    .mp-module-grid { grid-template-columns: 1fr; }
    .mp-step-row { grid-template-columns: 1fr; gap: 34px; }
    .mp-scene-grid { grid-template-columns: 1fr; }
    .mp-admin-grid { grid-template-columns: 1fr; }
    .mp-support-extra { grid-template-columns: 1fr; }
    .mp-kpi-strip { grid-template-columns: repeat(2, 1fr); padding: 20px 14px; }
    .mp-kpi b { font-size: 22px; }
    .mp-phone { width: 260px; border-width: 8px; }
    .mp-btn { width: 100%; }
    .mp-hero-btns { flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
    .mp-acc-item summary { font-size: 14px; padding: 14px 16px; }
}
