:root {
    --bg: #050811;
    --bg-soft: #090d1e;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --primary: #5c6cff;
    --primary-soft: rgba(92, 108, 255, 0.2);
    --text: #f5f7ff;
    --text-muted: rgba(245, 247, 255, 0.72);
    --max-width: 1080px;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: radial-gradient(circle at 15% 20%, rgba(92, 108, 255, 0.18), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(0, 208, 255, 0.16), transparent 45%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

a:hover {
    opacity: 0.85;
}

.hero {
    position: relative;
    padding: 3.5rem 1.5rem 5rem;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: 1.35rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.4rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.nav-toggle span {
    width: 1.6rem;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero-body {
    display: grid;
    grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5.5vw, 3.6rem);
    line-height: 1.15;
}

.subtitle {
    margin: 0;
    color: var(--text-muted);
}

.hero-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-tags li {
    padding: 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.1rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
    background: linear-gradient(135deg, #5c6cff, #8456ff);
    color: #080b19;
    box-shadow: 0 18px 45px rgba(92, 108, 255, 0.42);
}

.btn.primary:hover {
    transform: translateY(-2px);
}

.btn.ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn.ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
}

.hero-visual {
    position: relative;
    min-height: 340px;
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(92, 108, 255, 0.18), rgba(0, 208, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
}

.orb-1 {
    width: 260px;
    height: 260px;
    top: -14%;
    right: -6%;
    background: radial-gradient(circle, rgba(92, 108, 255, 0.6), transparent 65%);
}

.orb-2 {
    width: 220px;
    height: 220px;
    bottom: -12%;
    left: -10%;
    background: radial-gradient(circle, rgba(0, 208, 255, 0.55), transparent 60%);
}

.grid-lines {
    position: absolute;
    inset: 12%;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    backdrop-filter: blur(12px);
}

main {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 40%) no-repeat,
        var(--bg-soft);
}

.section {
    padding: 4.5rem 1.5rem;
}

.section:nth-of-type(odd) {
    background: var(--bg-soft);
}

.section:nth-of-type(even) {
    background: var(--bg);
}

.section-header {
    max-width: 640px;
    margin: 0 auto 3.2rem;
    text-align: center;
}

.section-header h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
}

.grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

article {
    padding: 2rem;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

article h3 {
    margin: 0;
    font-size: 1.2rem;
}

article p {
    margin: 0;
    color: var(--text-muted);
}

.contact {
    background: radial-gradient(circle at 30% 15%, rgba(92, 108, 255, 0.16), transparent 60%),
        var(--bg-soft);
}

.contact-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-card {
    padding: 2.6rem 2.4rem;
    background: rgba(9, 12, 28, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.contact-card p {
    margin: 0;
    color: var(--text-muted);
}

.form-card .contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 8, 20, 0.8);
    color: var(--text);
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 247, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(92, 108, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(92, 108, 255, 0.18);
}

.contact-form button {
    justify-self: flex-start;
    padding: 0.85rem 2.5rem;
}

.qr-card {
    align-items: center;
    text-align: center;
}

.qr-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 8, 20, 0.6);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.qr-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.qr-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.qr-meta .btn {
    padding: 0.75rem 1.6rem;
}

.qr-note {
    font-size: 0.9rem;
    color: rgba(245, 247, 255, 0.6);
}

.footer {
    padding: 2rem 1.5rem 2.8rem;
    background: var(--bg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
    .hero-body {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .hero {
        padding: 3rem 1.2rem 4rem;
    }

    .hero-inner {
        gap: 2.8rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 4.8rem;
        right: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(9, 12, 28, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        padding: 1.4rem;
        gap: 1rem;
        display: none;
        min-width: 180px;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
        z-index: 10;
    }

    .nav-links.open {
        display: flex;
    }

    .top-bar {
        position: relative;
    }

    .hero-content {
        text-align: left;
    }

    .hero-tags {
        gap: 0.6rem;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .section {
        padding: 4rem 1.2rem;
    }

    article {
        padding: 1.7rem;
    }

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

    .contact-card {
        padding: 2.4rem 1.9rem;
    }

    .contact-form button {
        justify-self: center;
    }

    .qr-wrapper {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 15px;
    }

    .hero {
        padding-top: 2.6rem;
    }

    .hero-content {
        gap: 1.4rem;
    }

    .hero-tags li {
        font-size: 0.85rem;
    }

    .btn {
        width: 100%;
    }

    .contact-form button {
        width: 100%;
        justify-self: stretch;
    }

    .qr-wrapper {
        width: 180px;
        height: 180px;
    }
}
