:root {
    --ink: #11121a;
    --muted: #5c6278;
    --paper: #f5f4fb;
    --white: #ffffff;
    --line: rgba(17, 18, 26, 0.08);
    --brand: #4528d1;
    --brand-2: #785dff;
    --accent: #ff6b4a;
    --shadow: 0 18px 50px rgba(69, 40, 209, 0.14);
    --radius: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 92px;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
}

button, input {
    font: inherit;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand h1,
.nav-brand strong {
    font-family: "Outfit", sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: #333;
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
    color: var(--brand);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    transition: all 0.3s ease;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.nav-menu-cta {
    display: none;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: var(--ink);
    margin: 0 auto;
    transition: 0.2s ease;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    overflow: hidden;
    background: #f7f8ff;
}

.hero-media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-bg-preview {
    filter: blur(18px);
    transform: scale(1.08);
}

.hero-bg-full {
    opacity: 0;
    transition: opacity 0.45s ease;
}

.hero.is-ready .hero-bg-full {
    opacity: 1;
}

.hero-glow {
    display: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(40px, 5.4vw, 68px);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.btn-hero,
.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-hero {
    background: linear-gradient(135deg, #4528d1 0%, #785dff 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 0 20px rgba(255, 255, 255, 0.45);
}

.btn-hero:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(69, 40, 209, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.btn-hero:active {
    transform: translateY(-2px);
}

.btn-hero-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--brand);
    border: 2px solid rgba(69, 40, 209, 0.2);
}

.btn-hero-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--brand);
}

.btn-hero-ghost.dark {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-hero-ghost.light {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-stats {
    display: flex;
    gap: 28px;
}

.hero-stats strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
}

.hero-stats span {
    color: var(--muted);
    font-size: 13px;
}

.hero-visual {
    position: relative;
    min-height: 460px;
    animation: fadeInUp 1.15s ease-out;
}

.float-card {
    position: absolute;
    background: white;
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    width: 290px;
}

.card-demand {
    top: 18px;
    left: 8%;
    transform: rotate(-3deg);
}

.card-match {
    top: 168px;
    right: 0;
    transform: rotate(4deg);
}

.card-talent {
    bottom: 18px;
    left: 18%;
    width: 240px;
}

.float-card header,
.float-card footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
}

.float-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
}

.float-card p {
    color: var(--muted);
    font-size: 14px;
}

.badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 12px;
    width: fit-content;
}

.badge-open {
    background: #efe9ff;
    color: var(--brand);
}

.badge-match {
    background: #e8f8ef;
    color: #178a4b;
}

.price {
    color: var(--ink);
    font-weight: 800;
}

.progress {
    height: 8px;
    background: #efeafc;
    border-radius: 99px;
    margin: 14px 0;
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.avatar-row {
    display: flex;
    margin-bottom: 10px;
}

.avatar-row span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    margin-right: -8px;
    border: 2px solid white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
}

.avatar-row span:nth-child(2) { background: linear-gradient(135deg, #785dff, #4528d1); }
.avatar-row span:nth-child(3) { background: linear-gradient(135deg, #ff8a6b, #ff6b4a); }

.section {
    padding: 96px 0;
}

.section-head {
    max-width: 640px;
    margin-bottom: 40px;
}

.section-head h2,
.role-card h2,
.about h2,
.miniapp h2,
.cta-band h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.section-head p:last-child {
    color: var(--muted);
    font-size: 17px;
}

.hall {
    background: white;
}

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

.demand-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.demand-card .badge {
    align-self: flex-start;
}

.demand-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    background: white;
}

.demand-card h3 {
    font-size: 18px;
}

.demand-card p {
    color: var(--muted);
    font-size: 14px;
    flex: 1;
}

.demand-card .meta {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.how {
    background: #f8f7ff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    background: white;
    border-radius: var(--radius);
    padding: 24px 20px 28px;
    box-shadow: 0 10px 30px rgba(17, 18, 26, 0.04);
}

.step-num {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-2);
}

.step h3 {
    margin: 10px 0 8px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
}

.split {
    padding-top: 40px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.role-card {
    border-radius: 28px;
    padding: 40px;
    min-height: 360px;
}

.role-publish {
    background: white;
    border: 1px solid var(--line);
}

.role-take {
    background: linear-gradient(160deg, #4528d1 0%, #1d163f 100%);
    color: white;
}

.role-take .eyebrow {
    color: #cbbfff;
}

.role-card ul {
    margin: 18px 0 28px;
    padding-left: 18px;
    color: var(--muted);
}

.role-take ul {
    color: rgba(255, 255, 255, 0.82);
}

.role-card li + li {
    margin-top: 10px;
}

.features {
    background: white;
}

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

.feature {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--paper);
}

.feature h3 {
    margin-bottom: 8px;
}

.feature p {
    color: var(--muted);
    font-size: 14px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.about p,
.miniapp p {
    color: var(--muted);
    font-size: 17px;
}

.miniapp {
    background: white;
}

.miniapp-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
}

.miniapp-steps {
    margin: 22px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.miniapp-steps li + li {
    margin-top: 10px;
}

.miniapp-card {
    background: var(--paper);
    border-radius: 28px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
}

.miniapp-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: white;
    display: grid;
    place-items: center;
}

.miniapp-icon svg {
    width: 40px;
    height: 40px;
}

.miniapp-name {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink) !important;
    letter-spacing: 0.04em;
    margin: 0;
}

.miniapp-hint {
    margin: 4px 0 20px !important;
    font-size: 14px !important;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 18px;
    border-radius: 999px;
    background: white;
    color: var(--brand);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(69, 40, 209, 0.12);
}

blockquote {
    background: white;
    border-radius: 28px;
    padding: 32px;
    font-size: 22px;
    line-height: 1.5;
    box-shadow: var(--shadow);
}

blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    font-style: normal;
    color: var(--muted);
}

.cta-band {
    margin: 0 24px 48px;
    border-radius: 32px;
    padding: 72px 24px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #4528d1 0%, #785dff 55%, #ff6b4a 140%);
}

.cta-band .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

.cta-band p {
    opacity: 0.9;
    margin-bottom: 8px;
}

.footer {
    padding: 48px 0 24px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.footer h4 {
    color: var(--ink);
    margin-bottom: 12px;
}

.footer a,
.footer p {
    display: block;
    margin-top: 8px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 13px;
}

.copyright a {
    display: inline;
    margin-top: 0;
    color: inherit;
}

.copyright a:hover {
    color: var(--ink);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.miniapp .btn-hero {
    margin-top: 24px;
}

a.search-pill {
    text-decoration: none;
}

.explorer-hero {
    padding: 140px 0 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(120, 93, 255, 0.18), transparent 32%),
        linear-gradient(180deg, #fbfaff 0%, #ffffff 100%);
}

.explorer-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.explorer-hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 17px;
}

.explorer {
    padding: 0 0 80px;
    background: white;
}

.explorer-controls {
    padding: 0 0 18px;
}

.explorer-toolbar {
    position: sticky;
    top: 70px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 -4px 14px;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    background: var(--paper);
    outline: none;
}

.search-box input:focus {
    border-color: var(--brand-2);
    background: white;
}

.explorer-count {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    background: #f7f6fd;
    color: var(--ink);
    border-radius: 16px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    transition: 0.2s ease;
}

.filter-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.filter-btn-label {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
    white-space: normal;
}

.filter-btn-count {
    color: var(--muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.filter-btn:hover,
.filter-btn.is-active {
    color: white;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.filter-btn:hover .filter-btn-count,
.filter-btn.is-active .filter-btn-count {
    color: rgba(255, 255, 255, 0.84);
}

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

.group-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    height: 100%;
    text-align: left;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--paper);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    background: white;
}

.group-card strong {
    font-size: 16px;
    line-height: 1.4;
}

.group-meta {
    color: var(--muted);
    font-size: 13px;
}

.group-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
}

.group-card-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 48px 0;
}

.explorer-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 18, 26, 0.62);
}

.qr-lightbox {
    position: relative;
    display: grid;
    place-items: center;
    height: 100%;
    padding: 48px 16px 16px;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 1;
    pointer-events: auto;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.88);
}

.qr-lightbox img {
    pointer-events: auto;
    display: block;
    max-width: min(360px, calc(100vw - 32px));
    max-height: 86vh;
    width: auto;
    height: auto;
    animation: fadeInUp 0.28s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .demand-grid,
    .steps,
    .split-grid,
    .feature-grid,
    .about-grid,
    .miniapp-grid,
    .group-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 16px;
        right: 16px;
        background: white;
        border-radius: 18px;
        padding: 16px;
        box-shadow: var(--shadow);
        flex-direction: column;
        gap: 14px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu-cta {
        display: list-item;
    }

    .nav-actions .btn-signup {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 56px;
    }

    .hero-grid,
    .demand-grid,
    .steps,
    .split-grid,
    .feature-grid,
    .about-grid,
    .miniapp-grid,
    .group-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .explorer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .category-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-visual {
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .float-card,
    .card-demand,
    .card-match,
    .card-talent {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0;
        transform: none;
    }

    .cta-band {
        margin: 0 16px 32px;
        padding: 48px 18px;
    }

    .role-card {
        padding: 28px 22px;
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .btn-hero,
    .btn-hero-ghost {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-stats strong {
        font-size: 22px;
    }
}
