/* ==========================================================================
   PoJuan AI — 内页与表单样式
   ========================================================================== */

.main-nav a.is-active {
    color: #fff;
}

.main-nav a.is-active::after {
    transform: scaleX(1);
}

/* Page hero ---------------------------------------------------------------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 64px) 0 64px;
    background:
        radial-gradient(760px 400px at 82% 0%, rgba(59, 123, 255, .2), transparent 70%),
        radial-gradient(560px 320px at 8% 100%, rgba(255, 197, 61, .06), transparent 70%),
        linear-gradient(180deg, #071023, #060d1c);
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(80% 80% at 50% 30%, #000 5%, transparent 80%);
    mask-image: radial-gradient(80% 80% at 50% 30%, #000 5%, transparent 80%);
    opacity: .5;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb,
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 12px;
    color: var(--muted-2);
}

.breadcrumb a:hover {
    color: #fff;
}

.page-hero h1 {
    max-width: 960px;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.16;
    font-weight: 780;
    letter-spacing: -.025em;
    color: #fff;
    font-feature-settings: "palt";
}

.page-hero-sub {
    max-width: 700px;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.9;
    color: #9cabc6;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* Listing / filters -------------------------------------------------------- */

.listing-section {
    padding: 72px 0 96px;
    background: var(--light-bg);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(13, 25, 48, .08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 38, 80, .04);
}

.filter-tabs a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #5d6b82;
    transition: background .2s, color .2s;
}

.filter-tabs a:hover {
    color: var(--ink);
    background: #f2f5fa;
}

.filter-tabs a.is-active {
    color: #fff;
    background: var(--ink);
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    width: 220px;
    padding: 10px 13px;
    border: 1px solid rgba(13, 25, 48, .12);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    color: var(--ink);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #4a86ff;
    box-shadow: 0 0 0 3px rgba(74, 134, 255, .12);
}

.search-form button {
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

/* Article tiles ------------------------------------------------------------ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.article-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.article-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(13, 25, 48, .07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(18, 38, 80, .045);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.article-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 89, 216, .22);
    box-shadow: 0 20px 48px rgba(18, 38, 80, .1);
}

.article-tile-thumb {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 142px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, #163b7a, #2e6df0);
    overflow: hidden;
}

.article-tile-thumb.has-cover {
    background-size: cover;
    background-position: center;
}

.article-tile-thumb.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 28, .05), rgba(6, 13, 28, .55));
}

.article-tile-thumb small,
.article-tile-thumb b {
    position: relative;
    z-index: 1;
}

.article-tile-thumb small {
    font-size: 9.5px;
    letter-spacing: .16em;
    opacity: .78;
}

.article-tile-thumb b {
    font-size: 28px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.03em;
    opacity: .9;
}

.article-tile:nth-child(4n+2) .article-tile-thumb {
    background: linear-gradient(135deg, #7c5410, #e2a71f);
}

.article-tile:nth-child(4n+3) .article-tile-thumb {
    background: linear-gradient(135deg, #0d4f5c, #2aa3b8);
}

.article-tile:nth-child(4n+0) .article-tile-thumb {
    background: linear-gradient(135deg, #3b2a72, #7d63d9);
}

.article-tile-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.article-tile .meta {
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a97aa;
}

.article-tile h3 {
    margin-bottom: 8px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink);
}

.article-tile p {
    margin-bottom: 18px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--ink-muted);
}

.article-tile .text-link {
    margin-top: auto;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border: 1px dashed rgba(13, 25, 48, .15);
    border-radius: 16px;
    text-align: center;
    color: #7b8798;
    font-size: 13.5px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 42px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(13, 25, 48, .1);
    border-radius: 9px;
    background: #fff;
    font-size: 12.5px;
    color: #40506a;
    transition: background .2s, color .2s, border-color .2s;
}

.page-link:hover {
    border-color: #2559d8;
    color: #2559d8;
}

.page-link.is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.page-gap {
    padding: 0 4px;
    font-size: 12px;
    color: #98a5b8;
}

/* Product overview cards --------------------------------------------------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.product-card-large {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 30px 26px;
    border: 1px solid rgba(13, 25, 48, .07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 38, 80, .05);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}

.product-card-large:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 89, 216, .24);
    box-shadow: 0 24px 56px rgba(18, 38, 80, .11);
}

.product-card-large .num {
    margin-bottom: 22px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    color: #98a5b8;
}

.product-card-large .pill {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 16px;
    padding: 5px 10px;
    border-radius: 20px;
    background: #eef3ff;
    font-size: 10.5px;
    font-weight: 600;
    color: #2559d8;
}

.product-cover {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 150px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #163b7a, #2e6df0);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.product-cover.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 28, .05), rgba(6, 13, 28, .58));
}

.product-cover .num {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, .8);
}

.product-cover .pill {
    position: relative;
    z-index: 1;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.product-grid > .product-card-large:nth-child(2) .product-cover:not(.has-cover) {
    background: linear-gradient(135deg, #7c5410, #e2a71f);
}

.product-grid > .product-card-large:nth-child(3) .product-cover:not(.has-cover) {
    background: linear-gradient(135deg, #0d4f5c, #2aa3b8);
}

.product-card-large h2 {
    margin-bottom: 10px;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -.015em;
    color: var(--ink);
}

.product-card-large > p {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink-muted);
}

.product-card-large ul {
    margin-bottom: 24px;
}

.product-card-large li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #40506a;
}

.product-card-large li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: #4a86ff;
    transform: rotate(45deg);
}

.product-card-large .text-link {
    margin-top: auto;
}

/* Page content / prose ----------------------------------------------------- */

.page-body {
    padding: 56px 0 96px;
    background: var(--light-bg);
}

.page-prose {
    max-width: 920px;
    margin-inline: auto;
}

.page-prose .article-content {
    padding: 48px;
}

.page-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

/* Contact page ------------------------------------------------------------- */

.contact-section {
    padding: 64px 0 96px;
    background: var(--light-bg);
}

.contact-layout {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 24px;
    align-items: start;
}

.contact-card {
    padding: 30px;
    border: 1px solid rgba(13, 25, 48, .07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 38, 80, .05);
}

.contact-card h2 {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--ink);
}

.contact-card > p {
    margin-bottom: 22px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink-muted);
}

.contact-list-large li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid rgba(13, 25, 48, .07);
}

.contact-list-large svg {
    margin-top: 3px;
    color: #d99a00;
    flex-shrink: 0;
}

.contact-list-large b {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    color: #8a97aa;
}

.contact-list-large a,
.contact-list-large span {
    display: block;
    margin-top: 2px;
    font-size: 13.5px;
    color: #33415c;
}

.contact-list-large a:hover {
    color: #2559d8;
}

.qr-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 20px;
}

.qr-contact-grid figure {
    margin: 0;
    padding: 7px;
    border: 1px solid rgba(13, 25, 48, .08);
    border-radius: 10px;
    background: #fbfcfe;
}

.qr-contact-grid img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}

.qr-contact-grid figcaption {
    margin-top: 5px;
    text-align: center;
    font-size: 9.5px;
    color: #7b8798;
}

.contact-form-card {
    padding: 34px;
    border: 1px solid rgba(13, 25, 48, .07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 38, 80, .05);
}

.contact-form-card h2 {
    margin-bottom: 6px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--ink);
}

.contact-form-card > p {
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--ink-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #33415c;
}

.form-field .req {
    color: #c43b3b;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #dbe2ee;
    border-radius: 10px;
    background: #fbfcfe;
    font: inherit;
    font-size: 13.5px;
    color: #1b2940;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #a0acbe;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #4a86ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 134, 255, .12);
}

.form-field textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.8;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.75;
    color: #5d6b82;
}

.form-check input {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #2d63e8;
}

.form-check a {
    color: #2559d8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
}

.form-note {
    margin-top: 14px;
    font-size: 11.5px;
    line-height: 1.8;
    color: #8a97aa;
}

.alert {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.75;
}

.alert-success {
    border: 1px solid #bfe8cf;
    background: #e9f8ef;
    color: #17663a;
}

.alert-error {
    border: 1px solid #f3c4c4;
    background: #fdecec;
    color: #8a1f1f;
}

.alert ul {
    margin: 6px 0 0;
    padding-left: 18px;
    list-style: disc;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Downloads page ----------------------------------------------------------- */

.download-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.download-page-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid rgba(13, 25, 48, .07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 38, 80, .05);
}

.download-page-card .dl-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    background: #eef3ff;
    border-color: #d7e3ff;
    color: #2559d8;
    font-size: 9px;
}

.download-page-card h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

.download-page-card .meta {
    margin-bottom: 12px;
    font-size: 11.5px;
    color: #7b8798;
}

.download-page-card p {
    margin-bottom: 20px;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--ink-muted);
}

.download-page-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.download-note {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(13, 25, 48, .08);
    border-radius: 12px;
    background: #fff;
    font-size: 12px;
    line-height: 1.9;
    color: #6a778b;
}

/* Help page ---------------------------------------------------------------- */

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px;
    border: 1px solid rgba(13, 25, 48, .07);
    border-radius: 14px;
    background: #fff;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.help-item:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 89, 216, .22);
    box-shadow: 0 16px 38px rgba(18, 38, 80, .08);
}

.help-item .num {
    padding-top: 2px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #d99a00;
}

.help-item h3 {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    color: var(--ink);
}

.help-item p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--ink-muted);
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 900px) {
    .article-grid,
    .article-grid--4,
    .product-grid,
    .download-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding-top: calc(var(--header-h) + 44px);
        padding-bottom: 48px;
    }
}

@media (max-width: 720px) {
    .article-grid,
    .article-grid--4,
    .product-grid,
    .download-page-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        align-items: stretch;
    }

    .search-form input[type="search"] {
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .search-form button {
        flex-shrink: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-card,
    .contact-card {
        padding: 24px;
    }

    .page-prose .article-content {
        padding: 28px 22px;
    }

    .page-hero h1 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .qr-contact-grid {
        max-width: 360px;
    }
}


/* Anchor-based cards & small helpers --------------------------------------- */

a.scenario-card,
a.case-card {
    display: block;
}

a.case-card {
    height: 100%;
}

.search-summary {
    margin: -10px 0 24px;
    font-size: 12.5px;
    color: #6a778b;
}

.stat-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
}

.section--dark .industry-card .text-link {
    color: #2559d8;
}

.section--dark .industry-card .text-link:hover {
    color: #123fae;
}

@media (max-width: 900px) {
    .stat-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Secondary buttons on light content pages --------------------------------- */

.listing-section .btn-secondary,
.page-body .btn-secondary,
.contact-section .btn-secondary {
    color: var(--ink);
    background: #fff;
    border-color: rgba(13, 25, 48, .14);
    box-shadow: 0 8px 20px rgba(18, 38, 80, .06);
}

.listing-section .btn-secondary:hover,
.page-body .btn-secondary:hover,
.contact-section .btn-secondary:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

/* Invite-code gate --------------------------------------------------------- */

.invite-gate {
    max-width: 560px;
    margin: 0 auto;
    padding: 46px 40px;
    border: 1px solid rgba(13, 25, 48, .08);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(18, 38, 80, .08);
    text-align: center;
}

.invite-lock {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border: 1px solid rgba(37, 89, 216, .16);
    border-radius: 16px;
    background: linear-gradient(145deg, #eef4ff, #ffffff);
    color: #2559d8;
    box-shadow: 0 8px 20px rgba(37, 89, 216, .1);
}

.invite-lock svg {
    width: 26px;
    height: 26px;
}

.invite-gate h2 {
    margin-bottom: 10px;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.02em;
    color: var(--ink);
}

.invite-gate > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    color: var(--ink-muted);
}

.invite-form {
    display: flex;
    gap: 10px;
    max-width: 430px;
    margin: 24px auto 0;
}

.invite-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dbe2ee;
    border-radius: 10px;
    background: #fbfcfe;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    text-align: center;
    letter-spacing: .08em;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.invite-form input:focus {
    outline: none;
    border-color: #4a86ff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(74, 134, 255, .12);
}

.invite-form input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.invite-form .btn {
    flex-shrink: 0;
}

.invite-error {
    max-width: 430px;
    margin: 18px auto 0;
    padding: 10px 12px;
    border: 1px solid #f3c4c4;
    border-radius: 9px;
    background: #fdecec;
    color: #8a1f1f;
    font-size: 12.5px;
    line-height: 1.7;
}

.invite-hint {
    margin-top: 16px !important;
    font-size: 11.5px !important;
    color: #9aa7bb !important;
}

@media (max-width: 560px) {
    .invite-gate {
        padding: 34px 22px;
    }

    .invite-form {
        flex-direction: column;
    }

    .invite-form .btn {
        width: 100%;
    }
}


.invite-contact-link {
    padding: 0;
    border: 0;
    background: none;
    color: #2559d8;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.invite-contact-link:hover {
    color: #123fae;
}


/* Dark sections with white article cards ---------------------------------- */

.section--dark .article-tile .text-link {
    color: #2559d8;
}

.section--dark .article-tile .text-link:hover {
    color: #123fae;
}
