/* ==========================================================================
   Listing Pro — 竞品式目录站模板
   独立样式，不依赖原站 CSS；移动优先，首屏直接可见 App 列表
   ========================================================================== */

:root {
    --lp-accent: #0f7b3f;
    --lp-text: #16202a;
    --lp-muted: #5b6670;
    --lp-border: #e3e7ea;
    --lp-bg: #ffffff;
    --lp-soft: #f6f8f7;
    --lp-radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.lp {
    margin: 0;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.lp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 10px 14px;
    background: var(--lp-accent);
    color: #fff;
    z-index: 50;
}

.lp-skip:focus { left: 8px; top: 8px; }

:where(a, button, summary):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--lp-accent) 45%, transparent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- header ---------- */

.lp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--lp-border);
    backdrop-filter: blur(8px);
}

.lp-header-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 12px;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex: 0 0 auto;
}

.lp-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.lp-brand-name {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.01em;
    white-space: nowrap;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: auto;
    -webkit-overflow-scrolling: touch;
}

.lp-nav::-webkit-scrollbar { display: none; }

.lp-nav-link {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 13px;
    color: var(--lp-muted);
    text-decoration: none;
    border-radius: 999px;
    white-space: nowrap;
}

.lp-nav-link:hover { color: var(--lp-text); background: var(--lp-soft); }

.lp-nav-link.is-active { color: #fff; background: var(--lp-accent); }

/* ---------- notice ---------- */

.lp-notice {
    max-width: 1080px;
    margin: 10px auto 0;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--lp-accent) 28%, var(--lp-border));
    border-left: 3px solid var(--lp-accent);
    border-radius: 8px;
    background: color-mix(in srgb, var(--lp-accent) 6%, #fff);
    font-size: 13px;
    color: #33403a;
}

.lp-notice summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 12.5px;
    color: #33403a;
    list-style: none;
    position: relative;
    padding-right: 20px;
}

.lp-notice summary::-webkit-details-marker { display: none; }

.lp-notice summary::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--lp-accent);
    border-bottom: 2px solid var(--lp-accent);
    transform: translateY(-70%) rotate(45deg);
}

.lp-notice[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.lp-notice-body {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.55;
    max-height: 40vh;
    overflow: auto;
}

.lp-notice-body p { margin: 0 0 6px; }

.lp-notice-body p:last-child { margin-bottom: 0; }

/* ---------- main ---------- */

.lp-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 12px 32px;
}

/* ---------- home hero ---------- */

.lp-hero { padding: 6px 0 12px; }

.lp-hero h1 {
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -.015em;
    margin: 0 0 6px;
}

.lp-lede {
    margin: 0 0 8px;
    color: var(--lp-muted);
    font-size: 13.5px;
}

.lp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12.5px;
    color: var(--lp-muted);
}

.lp-hero-meta strong { color: var(--lp-text); }

/* ---------- section head ---------- */

.lp-list-section { margin-top: 14px; }

.lp-section-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.lp-section-head h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: -.01em;
}

.lp-count {
    display: inline-block;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--lp-soft);
    border: 1px solid var(--lp-border);
    color: var(--lp-muted);
    font-size: 12px;
    line-height: 18px;
}

/* ---------- app list ---------- */

.lp-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    overflow: hidden;
    background: #fff;
}

.lp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--lp-border);
}

.lp-row:last-child { border-bottom: 0; }

.lp-row:hover { background: var(--lp-soft); }

.lp-row-num {
    flex: 0 0 auto;
    min-width: 20px;
    color: var(--lp-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.lp-row-logo {
    flex: 0 0 auto;
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    overflow: hidden;
    background: var(--lp-soft);
    border: 1px solid var(--lp-border);
}

.lp-row-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lp-logo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9aa4ad;
}

.lp-logo-ph--lg { width: 88px; height: 88px; border-radius: 18px; border: 1px solid var(--lp-border); background: var(--lp-soft); }

.lp-row-body { min-width: 0; flex: 1 1 auto; }

.lp-row-name {
    display: block;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-row-name:hover { color: var(--lp-accent); }

.lp-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--lp-muted);
}

.lp-row-meta span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--lp-accent);
    vertical-align: middle;
    opacity: .55;
}

.lp-row-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--lp-accent, #0f7b3f);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-size: 13.5px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    forced-color-adjust: none;
}

.lp-row-btn:hover { filter: brightness(1.08); }

.lp-empty { padding: 16px 12px; color: var(--lp-muted); font-size: 13.5px; }

/* ---------- breadcrumb ---------- */

.lp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 4px 0 10px;
    font-size: 12.5px;
    color: var(--lp-muted);
}

.lp-crumbs a { color: var(--lp-accent); text-decoration: none; }

.lp-crumbs a:hover { text-decoration: underline; }

/* ---------- app detail ---------- */

.lp-app-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.lp-app-logo {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--lp-soft);
    border: 1px solid var(--lp-border);
}

.lp-app-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lp-app-title { min-width: 0; }

.lp-app-title h1 {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.lp-kw {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--lp-muted);
}

/* ---------- pills ---------- */

.lp-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.lp-pills li {
    padding: 9px 11px;
    border: 1px solid var(--lp-border);
    border-radius: 9px;
    background: var(--lp-soft);
}

.lp-pills span {
    display: block;
    font-size: 11.5px;
    color: var(--lp-muted);
}

.lp-pills strong {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    color: var(--lp-text);
}

/* ---------- buttons ---------- */

.lp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    min-height: 46px;
}

.lp-btn--primary {
    flex: 1 1 220px;
    background: var(--lp-accent, #0f7b3f);
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}

.lp-btn--primary:hover { filter: brightness(1.07); }

.lp-btn--ghost {
    flex: 0 1 auto;
    background: #fff;
    color: var(--lp-text);
    border-color: var(--lp-border);
}

.lp-btn--ghost:hover { background: var(--lp-soft); }

.lp-cta-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--lp-muted);
}

/* ---------- prose ---------- */

.lp-prose { margin-top: 16px; font-size: 14.5px; }

.lp-prose h2 {
    font-size: 16.5px;
    margin: 22px 0 8px;
    letter-spacing: -.01em;
    scroll-margin-top: 64px;
}

.lp-prose h3 { font-size: 15px; margin: 18px 0 6px; }

.lp-prose p { margin: 0 0 10px; }

.lp-prose ul,
.lp-prose ol { margin: 0 0 12px; padding-left: 20px; }

.lp-prose li { margin-bottom: 5px; }

.lp-prose a { color: var(--lp-accent); }

.lp-prose img { border-radius: 9px; }

.lp-prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.lp-prose th,
.lp-prose td { padding: 8px; border: 1px solid var(--lp-border); text-align: left; }

/* ---------- info table ---------- */

.lp-info { margin-top: 20px; }

.lp-info h2 { font-size: 16.5px; margin: 0 0 8px; }

.lp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    overflow: hidden;
}

.lp-table th,
.lp-table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--lp-border); }

.lp-table tr:last-child th,
.lp-table tr:last-child td { border-bottom: 0; }

.lp-table th {
    width: 46%;
    font-weight: 500;
    color: var(--lp-muted);
    background: var(--lp-soft);
}

.lp-table td { font-weight: 700; }

/* ---------- mid CTA ---------- */

.lp-midcta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--lp-accent) 30%, var(--lp-border));
    border-radius: var(--lp-radius);
    background: color-mix(in srgb, var(--lp-accent) 6%, #fff);
}

.lp-midcta p { margin: 0; font-size: 13.5px; font-weight: 600; }

.lp-midcta .lp-btn { flex: 0 0 auto; padding: 10px 16px; min-height: 42px; }

/* ---------- FAQ ---------- */

.lp-faq { margin-top: 22px; }

.lp-faq h2 { font-size: 16.5px; margin: 0 0 8px; }

.lp-faq-item {
    border: 1px solid var(--lp-border);
    border-radius: 9px;
    padding: 11px 12px;
    margin-bottom: 8px;
    background: #fff;
}

.lp-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    list-style: none;
    position: relative;
    padding-right: 22px;
}

.lp-faq-item summary::-webkit-details-marker { display: none; }

.lp-faq-item summary::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--lp-accent);
    border-bottom: 2px solid var(--lp-accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .15s ease;
}

.lp-faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }

.lp-faq-item p { margin: 8px 0 0; font-size: 14px; color: #3c474f; }

/* ---------- related ---------- */

.lp-related { margin-top: 24px; }

/* ---------- page / 404 ---------- */

.lp-page { max-width: 760px; }

.lp-page h1 { font-size: 21px; margin: 6px 0 12px; letter-spacing: -.02em; }

.lp-404 {
    padding: 48px 0;
    text-align: center;
}

.lp-404-code {
    margin: 0;
    font-size: 44px;
    font-weight: 800;
    color: var(--lp-accent);
    line-height: 1;
}

.lp-404 h1 { font-size: 19px; margin: 10px 0 6px; }

.lp-404 p { color: var(--lp-muted); margin: 0 auto 16px; max-width: 420px; }

.lp-404 .lp-btn { display: inline-flex; }

/* ---------- compliance ---------- */

.lp-compliance {
    max-width: 1080px;
    margin: 8px auto 0;
    padding: 0 12px;
}

.lp-compliance p {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 9px;
    background: var(--lp-soft);
    color: var(--lp-muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.lp-age {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--lp-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* ---------- footer ---------- */

.lp-footer {
    max-width: 1080px;
    margin: 20px auto 0;
    padding: 16px 12px 28px;
    border-top: 1px solid var(--lp-border);
}

.lp-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 10px;
}

.lp-footer-nav a {
    font-size: 13px;
    color: var(--lp-muted);
    text-decoration: none;
}

.lp-footer-nav a:hover { color: var(--lp-accent); }

.lp-footer-meta p { margin: 0 0 4px; font-size: 12.5px; color: var(--lp-muted); }

.lp-muted { color: #7c868f; }

.lp-top-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--lp-accent);
    text-decoration: none;
}

/* ---------- 640px+ ---------- */

@media (min-width: 640px) {
    .lp-main { padding: 16px 20px 40px; }
    .lp-hero h1 { font-size: 26px; }
    .lp-lede { font-size: 14.5px; }
    .lp-pills { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-app-title h1 { font-size: 26px; }
    .lp-btn--primary { flex: 0 0 auto; }
    .lp-row { padding: 10px 12px; }
    .lp-table th { width: 38%; }
}

/* ---------- 900px+ ---------- */

@media (min-width: 900px) {
    .lp-main { padding: 20px 24px 48px; }
    .lp-hero h1 { font-size: 30px; }
    .lp-app-logo { width: 104px; height: 104px; }
    .lp-prose { font-size: 15px; max-width: 820px; }
    .lp-faq { max-width: 820px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-faq-item summary::after { transition: none; }
}
