/* ============================================================
   css/app.css — 产品发布页专属样式（前缀 ap-）
   主色沿用 common.css 变量 var(--orange-600)；辅助底色用暖灰。
   断点：960px / 640px
   ============================================================ */

/* ---------- Hero ---------- */
.ap-hero {
    background:
        radial-gradient(circle at 15% 10%, rgba(249, 115, 22, .16), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(254, 215, 170, .35), transparent 50%),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 70%);
    padding: 64px 0 90px;
    text-align: center;
}
.ap-hero-inner { max-width: 760px; }
.ap-hero-eyebrow { margin-bottom: 18px; }
.ap-hero-title {
    font-size: 40px;
    line-height: 1.25;
    margin: 6px 0 16px;
}
.ap-hero-sub {
    color: var(--ink-500);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 28px;
}
.ap-hero-btns {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ap-btn-solid {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    box-shadow: 0 10px 22px rgba(234, 88, 12, .32);
}
.ap-btn-solid:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(234, 88, 12, .4); }
.ap-btn-ghost {
    border: 1.5px solid var(--orange-300);
    color: var(--orange-700);
    background: #fff;
}
.ap-btn-ghost:hover { background: var(--orange-50); color: var(--orange-600); }
.ap-btn-block { width: 100%; }
.ap-btn-ghost-dark {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: transparent;
    height: 42px;
    padding: 0 22px;
    flex-shrink: 0;
}
.ap-btn-ghost-dark:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* 手机样机 */
.ap-phone {
    position: relative;
    width: 300px;
    margin: 0 auto;
    background: var(--ink-900);
    border-radius: 38px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(28, 25, 23, .12);
}
.ap-phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 22px;
    background: var(--ink-900);
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.ap-phone-screen {
    background: linear-gradient(180deg, #fff7ed, #ffffff 40%);
    border-radius: 28px;
    padding: 34px 16px 14px;
    text-align: left;
    color: var(--ink-900);
}
.ap-screen-status {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-700);
    margin-bottom: 12px;
}
.ap-screen-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.ap-screen-logo {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff; font-weight: 800;
    border-radius: 10px;
}
.ap-screen-head b { display: block; font-size: 14px; }
.ap-screen-head small { font-size: 10.5px; color: var(--ink-500); }
.ap-screen-search {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-pill);
    padding: 9px 14px;
    font-size: 12px;
    color: var(--ink-400);
    margin-bottom: 10px;
}
.ap-screen-row { display: flex; gap: 6px; margin-bottom: 12px; }
.ap-screen-chip {
    font-size: 10.5px;
    background: var(--orange-100);
    color: var(--orange-800);
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}
.ap-screen-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 8px;
}
.ap-screen-avatar {
    width: 34px; height: 34px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--orange-50);
    color: var(--orange-700);
    border: 1px dashed var(--orange-300);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}
.ap-screen-card-body { flex: 1; min-width: 0; }
.ap-screen-card-body b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-screen-card-body small { font-size: 10px; color: var(--ink-500); }
.ap-screen-card em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--orange-600); }
.ap-screen-tab {
    margin-top: 10px;
    text-align: center;
    font-size: 10.5px;
    color: var(--ink-400);
    border-top: 1px solid var(--ink-100);
    padding-top: 8px;
}

/* ---------- 数据条 ---------- */
.ap-stats { background: #fff; border-bottom: 1px solid var(--ink-200); }
.ap-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 34px 0;
}
.ap-stat { text-align: center; }
.ap-stat b {
    display: block;
    font-size: 30px;
    color: var(--orange-600);
    line-height: 1.2;
}
.ap-stat span { font-size: 13px; color: var(--ink-500); }

/* ---------- 两侧特性交替 ---------- */
.ap-rails { padding: 80px 0; }
.ap-rails-layout {
    display: grid;
    grid-template-columns: 1fr 240px 1fr;
    gap: 28px;
    align-items: center;
}
.ap-rails-side { display: grid; gap: 22px; }
.ap-rail-card {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ap-rail-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange-300);
    box-shadow: var(--shadow);
}
.ap-rail-left { border-left: 4px solid var(--orange-500); }
.ap-rail-right { border-right: 4px solid var(--orange-500); }
.ap-rail-ico {
    width: 46px; height: 46px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 22px;
    background: var(--orange-50);
    border-radius: 12px;
}
.ap-rail-card h3 { font-size: 17px; margin-bottom: 6px; }
.ap-rail-card p { font-size: 13.5px; color: var(--ink-500); }

/* 中央闭环示意 */
.ap-rails-phone { position: relative; }
.ap-rails-phone-body {
    background: var(--ink-900);
    border-radius: 26px;
    padding: 26px 18px;
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.ap-rails-phone-dot {
    display: block;
    width: 46px; height: 46px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(234, 88, 12, .25);
}
.ap-rails-phone-label { font-size: 12px; color: var(--orange-300); font-weight: 700; letter-spacing: 2px; }
.ap-rails-flow { display: grid; gap: 10px; margin-top: 16px; }
.ap-rails-flow i {
    font-style: normal;
    font-size: 13px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    padding: 9px 0;
}

/* ---------- 下载二维码卡 ---------- */
.ap-dl { background: #fff; border-top: 1px solid var(--ink-200); padding: 80px 0; }
.ap-dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
}
.ap-dl-card {
    position: relative;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: grid;
    gap: 18px;
    align-content: start;
}
.ap-dl-card-hot {
    background: linear-gradient(180deg, #fff, #fff7ed);
    border-color: var(--orange-300);
    box-shadow: var(--shadow);
}
.ap-dl-badge {
    position: absolute;
    top: -13px;
    right: 22px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-700));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 14px rgba(234, 88, 12, .35);
}
.ap-dl-head { display: flex; align-items: center; gap: 12px; }
.ap-dl-os {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--ink-900);
    padding: 8px 12px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.ap-dl-os-android { background: linear-gradient(135deg, var(--orange-500), var(--orange-700)); }
.ap-dl-head h3 { font-size: 19px; }
.ap-dl-head small { color: var(--ink-500); font-size: 12.5px; }
.ap-dl-qr {
    justify-self: center;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-xs);
}
.ap-dl-list { display: grid; gap: 8px; }
.ap-dl-list li {
    font-size: 13.5px;
    color: var(--ink-700);
    padding-left: 22px;
    position: relative;
}
.ap-dl-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}
.ap-dl-note {
    text-align: center;
    margin-top: 34px;
    font-size: 13.5px;
    color: var(--ink-500);
}
.ap-dl-note a { font-weight: 600; }

/* ---------- 更新日志时间线 ---------- */
.ap-log { padding: 80px 0; }
.ap-timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-left: 34px;
}
.ap-timeline::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, var(--orange-500), var(--orange-200));
}
.ap-tl-item { position: relative; padding-bottom: 26px; }
.ap-tl-item:last-child { padding-bottom: 0; }
.ap-tl-dot {
    position: absolute;
    left: -34px;
    top: 4px;
    width: 24px; height: 24px;
    background: #fff;
    border: 3px solid var(--orange-500);
    border-radius: 50%;
}
.ap-tl-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(234, 88, 12, .35);
    animation: apPulse 1.8s ease-out infinite;
}
@keyframes apPulse {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.9); opacity: 0; }
}
.ap-tl-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 18px 22px;
}
.ap-tl-item.is-current .ap-tl-card {
    border-color: var(--orange-400);
    background: linear-gradient(180deg, #fff, #fff7ed);
    box-shadow: var(--shadow-sm);
}
.ap-tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ap-tl-ver { font-size: 18px; color: var(--orange-700); }
.ap-tl-date { font-size: 12.5px; color: var(--ink-400); }
.ap-tl-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--orange-700);
    background: var(--orange-100);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.ap-tl-items { display: grid; gap: 6px; }
.ap-tl-items li {
    font-size: 13.5px;
    color: var(--ink-700);
    padding-left: 18px;
    position: relative;
}
.ap-tl-items li::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--orange-500);
}

/* ---------- 权限与安全 ---------- */
.ap-sec { background: #fff; border-top: 1px solid var(--ink-200); padding: 80px 0 90px; }
.ap-sec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}
.ap-sec-card {
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.ap-sec-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ap-sec-top b { font-size: 15.5px; }
.ap-sec-level {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.ap-sec-must { color: var(--orange-700); background: var(--orange-100); }
.ap-sec-opt { color: var(--blue); background: #eff6ff; }
.ap-sec-no { color: var(--ink-500); background: var(--ink-100); }
.ap-sec-card p { font-size: 13px; color: var(--ink-500); }

.ap-sec-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(120deg, var(--ink-900), #44403c);
    color: var(--ink-200);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
}
.ap-sec-banner-ico {
    width: 54px; height: 54px; flex-shrink: 0;
    display: grid; place-items: center;
    font-size: 26px;
    background: rgba(255, 255, 255, .08);
    border-radius: 14px;
}
.ap-sec-banner h3 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.ap-sec-banner p { font-size: 13.5px; }
.ap-sec-banner a { color: var(--orange-300); font-weight: 600; }

/* ---------- 响应式 960px ---------- */
@media (max-width: 960px) {
    .ap-hero { padding: 48px 0 64px; }
    .ap-hero-title { font-size: 31px; }
    .ap-rails-layout { grid-template-columns: 1fr; gap: 20px; }
    .ap-rails-phone { order: -1; max-width: 320px; margin: 0 auto; }
    .ap-rail-left, .ap-rail-right { border-left: 4px solid var(--orange-500); border-right: none; }
    .ap-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ap-dl-grid { grid-template-columns: 1fr; max-width: 420px; }
    .ap-sec-grid { grid-template-columns: repeat(2, 1fr); }
    .ap-sec-banner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 响应式 640px ---------- */
@media (max-width: 640px) {
    .ap-hero-title { font-size: 25px; }
    .ap-hero-sub { font-size: 14.5px; }
    .ap-phone { width: 250px; }
    .ap-btn { width: 100%; padding: 0 18px; }
    .ap-hero-btns { flex-direction: column; align-items: stretch; max-width: 280px; margin-left: auto; margin-right: auto; }
    .ap-stats-grid b { font-size: 24px; }
    .ap-rails, .ap-dl, .ap-log, .ap-sec { padding: 54px 0; }
    .ap-timeline { padding-left: 26px; }
    .ap-tl-dot { left: -26px; width: 20px; height: 20px; }
    .ap-timeline::before { left: 9px; }
    .ap-sec-grid { grid-template-columns: 1fr; }
    .ap-dl-card { padding: 22px 18px; }
}
