/* Module landing pages share the homepage's light canvas and illustrated panel. */
:where(.module-hero-heading, .feelink-hero) {
    --module-accent: #2159c8;
    --module-tint: #edf4ff;
    --module-panel: #153457;
    --module-glow: #256486;
}

body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) {
    padding: clamp(28px, 3.8vw, 54px) 0;
    background: linear-gradient(110deg, #fff 30%, var(--module-tint));
}

body .module-hero-heading:has(img[src*="module-project"]) {
    --module-tint: #f2efff;
    --module-panel: #25254f;
    --module-glow: #4e518f;
}
body .module-hero-heading:has(img[src*="module-drawing"]) {
    --module-accent: #166967;
    --module-tint: #e9f7f4;
    --module-panel: #143b46;
    --module-glow: #207471;
}
body .module-hero-heading:has(img[src*="module-ai"]) {
    --module-tint: #edf3ff;
    --module-panel: #162952;
    --module-glow: #345887;
}
body .feelink-hero {
    --module-tint: #fdf3e4;
    --module-panel: #14364d;
    --module-glow: #246f7d;
}

body :is(.public-listing-heading > .module-hero-layout, .feelink-hero > .feelink-hero-inner) {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 30%);
    gap: clamp(24px, 5vw, 80px);
    min-height: 0;
}

body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) .eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--module-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}
body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) .eyebrow::before {
    width: 16px;
    background: var(--module-accent);
}
body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) h1 {
    font-size: clamp(2.15rem, 4.25vw, 3.65rem);
    margin-bottom: 10px;
}
body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) .hero-copy {
    font-size: clamp(.98rem, 1.5vw, 1.125rem);
}

body .public-listing-heading .module-hero-visual,
.feelink-art {
    box-sizing: border-box;
    display: grid;
    place-items: center;
    justify-self: end;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1.95;
    border: 1px solid #294863;
    border-radius: 18px;
    background:
        radial-gradient(circle, #a8deed45 1px, transparent 1.5px) 0 0 / 18px 18px,
        radial-gradient(ellipse at 68% 26%, var(--module-glow), transparent 72%),
        var(--module-panel);
}
body .public-listing-heading .module-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
body .feelink-hero .feelink-emblem {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 0;
}

/* Section labels and card surfaces. */
.module-catalog .section-head, .module-latest .section-head,
.module-projects .section-head, .simple-ai .section-head {
    padding-left: 14px;
    border-left: 3px solid #287bba;
}
.page .module-catalog .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.page .module-catalog .category-card {
    position: relative;
    min-height: 132px;
    padding: 22px 52px 22px 22px;
    background: #fff;
    transition: border-color .18s ease, background .18s ease;
}
.page .module-catalog .category-card:has(h2 a):hover,
.page .module-catalog .category-card:focus-within {
    border-color: #9fbee6;
    background: #fafdff;
}
.module-catalog .category-card h2 a::after {
    content: "";
    position: absolute;
    inset: 0;
}
.module-catalog .category-card:has(h2 a)::after {
    content: "↗";
    position: absolute;
    top: 20px;
    right: 20px;
    color: #2159c8;
    font-size: 1rem;
    pointer-events: none;
}
.module-latest .card { overflow-wrap: anywhere; }
.page .module-projects .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 16px;
}
.page .module-projects .project-card-public {
    border-top: 3px solid #759ee1;
    padding: 22px;
}
.page .module-projects .project-card-public:nth-child(even) { border-top-color: #55b5a2; }
.module-projects .project-card-title a { text-wrap: balance; }
.module-projects .project-card-summary { margin-bottom: auto; }
.simple-ai .ai-filters { gap: 8px; }
.simple-ai .ai-filters button { min-height: 40px; border-radius: 9px; }
.simple-ai .ai-filters button[aria-pressed="true"] {
    background: #2159c8;
    border-color: #2159c8;
    color: #fff;
}
.simple-ai .ai-catalog-section .category-card { transition: border-color .18s ease, background .18s ease; }
.simple-ai .ai-catalog-section .category-card:hover { border-color: #96b6e1; }

.feelink-workflow .section-head { margin-bottom: 18px; }
.feelink-workflow ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.feelink-workflow li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px;
    border: 1px solid var(--learn-line);
    border-radius: 14px;
    background: #fff;
}
.feelink-workflow li span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    height: 38px;
    border-radius: 9px;
    background: #eaf2ff;
    color: #19479e;
    font-weight: 800;
}
#tuzhi-guest-trial > .container {
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--learn-line);
    border-left: 3px solid #279c91;
    border-radius: 14px;
    background: #fff;
}
#tuzhi-guest-trial h2 { margin-bottom: 6px; }
#tuzhi-guest-trial [data-trial-status] { margin-bottom: 0; color: var(--learn-muted); }
#tuzhi-guest-trial form:not([hidden]) { margin-top: 16px; }

@media (max-width: 850px) {
    .page .module-catalog .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    body :is(.public-listing-heading > .module-hero-layout, .feelink-hero > .feelink-hero-inner) {
        grid-template-columns: minmax(0, 1fr) minmax(82px, 25%);
        gap: 12px;
    }
    body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) h1 {
        font-size: clamp(1.55rem, 6vw, 2.2rem);
    }
    body :is(.page-heading.public-listing-heading.module-hero-heading, .feelink-hero) .hero-copy {
        font-size: .875rem;
    }
    body .public-listing-heading .module-hero-visual, .feelink-art {
        aspect-ratio: 1.17;
        border-radius: 12px;
    }
    .feelink-workflow ol { grid-template-columns: 1fr; gap: 8px; }
    .feelink-workflow li { padding: 12px 16px; }
}
@media (max-width: 460px) {
    .page .module-catalog .category-grid { grid-template-columns: 1fr; gap: 10px; }
    .page .module-catalog .category-card { min-height: 0; padding-block: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .module-catalog .category-card, .simple-ai .ai-catalog-section .category-card { transition: none; }
}
