:root {
    --bg: #06151b;
    --bg-soft: #0d2430;
    --text: #eef9f7;
    --muted: #9fb7bb;
    --cyan: #49e6dd;
    --green: #8cffb5;
    --gold: #ffd37a;
    --coral: #ff8d78;
    --line: rgba(255, 255, 255, 0.13);
    --panel: rgba(10, 32, 43, 0.72);
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(73, 230, 221, 0.2), transparent 28%),
        radial-gradient(circle at 78% 20%, rgba(255, 141, 120, 0.18), transparent 24%),
        linear-gradient(135deg, #06151b 0%, #0d1c2a 48%, #102916 100%);
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.star-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.85;
    z-index: 0;
}

.site-header,
main {
    position: relative;
    z-index: 1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    height: 76px;
    margin: 0 auto;
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.hero-tags,
.pill-row,
.lab-list {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(73, 230, 221, 0.42));
}

.nav-links {
    gap: 28px;
    color: rgba(238, 249, 247, 0.78);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--cyan);
}

.nav-actions {
    position: relative;
    gap: 12px;
}

.nav-action,
.nav-contact,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.nav-action {
    border: 1px solid rgba(73, 230, 221, 0.42);
    color: var(--cyan);
    background: rgba(73, 230, 221, 0.08);
}

.nav-contact {
    position: relative;
    border: 0;
    color: #031315;
    background: linear-gradient(135deg, var(--gold), var(--coral));
    box-shadow: 0 14px 34px rgba(255, 141, 120, 0.22);
    cursor: pointer;
}

.wechat-popover {
    position: relative;
}

.wechat-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    display: grid;
    gap: 8px;
    width: 238px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--text);
    background: rgba(6, 21, 27, 0.95);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 5;
}

.wechat-panel::before {
    content: "";
    position: absolute;
    right: 34px;
    top: -7px;
    width: 12px;
    height: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(6, 21, 27, 0.95);
    transform: rotate(45deg);
}

.wechat-popover:hover .wechat-panel,
.wechat-popover:focus-within .wechat-panel,
.wechat-popover.is-open .wechat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wechat-panel img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.wechat-panel strong {
    font-size: 16px;
}

.wechat-panel span {
    color: rgba(238, 249, 247, 0.78);
    font-size: 13px;
    line-height: 1.5;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
    align-items: center;
    gap: 34px;
    width: min(1180px, calc(100% - 40px));
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    padding: 34px 0 68px;
}

.eyebrow,
.section-kicker,
.section-heading p {
    margin: 0 0 16px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-copy h1 {
    margin: 0;
    font-size: 92px;
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 0 34px rgba(73, 230, 221, 0.26);
}

.hero-lead {
    width: min(100%, 610px);
    margin: 24px 0 0;
    color: rgba(238, 249, 247, 0.82);
    font-size: 20px;
    line-height: 1.85;
}

.hero-actions {
    gap: 14px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.btn-primary {
    color: #031315;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 14px 36px rgba(73, 230, 221, 0.26);
}

.btn-ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.hero-tags {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags span,
.pill-row span,
.lab-list span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(238, 249, 247, 0.78);
}

.hero-tags span {
    padding: 9px 13px;
    font-size: 13px;
}

.hero-visual {
    min-height: 650px;
    perspective: 1100px;
}

.visual-stage {
    position: relative;
    height: 650px;
    transform-style: preserve-3d;
}

.aurora,
.orbit-ring,
.base-wrap,
.orbit,
.base-shadow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
}

.aurora {
    width: 460px;
    height: 160px;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.76;
    animation: auroraPulse 5.5s ease-in-out infinite;
}

.aurora-one {
    background: linear-gradient(90deg, transparent, rgba(73, 230, 221, 0.82), rgba(255, 211, 122, 0.62), transparent);
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-14deg);
}

.aurora-two {
    background: linear-gradient(90deg, transparent, rgba(255, 141, 120, 0.7), rgba(140, 255, 181, 0.62), transparent);
    transform: translate(-50%, -50%) rotateX(70deg) rotateZ(22deg);
    animation-delay: -2.2s;
}

.orbit-ring {
    width: 500px;
    height: 178px;
    border: 1px solid rgba(73, 230, 221, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(73, 230, 221, 0.1), inset 0 0 26px rgba(140, 255, 181, 0.08);
}

.ring-one {
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-8deg);
    animation: ringGlow 4.8s ease-in-out infinite;
}

.ring-two {
    width: 620px;
    height: 220px;
    border-color: rgba(255, 211, 122, 0.2);
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(24deg);
    animation: ringGlow 6s ease-in-out infinite -1s;
}

.ring-three {
    width: 760px;
    height: 264px;
    border-color: rgba(255, 141, 120, 0.18);
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-34deg);
    animation: ringGlow 7s ease-in-out infinite -2s;
}

.base-wrap {
    width: min(62vw, 520px);
    aspect-ratio: 1;
    transform: translate(-50%, -44%) translateZ(70px);
    animation: floatBase 4.6s ease-in-out infinite;
}

.floating-base {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 32px 48px rgba(0, 0, 0, 0.42));
}

.base-shadow {
    width: 58%;
    height: 18%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.28);
    filter: blur(18px);
    transform: translate(-50%, 156%) rotateX(72deg);
}

.orbit {
    width: 1px;
    height: 1px;
    transform: translate(-50%, -50%) rotateX(66deg);
}

.orbit-one {
    animation: orbitSpin 13s linear infinite;
}

.orbit-two {
    animation: orbitSpin 18s linear infinite reverse;
}

.orbit-three {
    animation: orbitSpin 24s linear infinite;
}

.orbit-four {
    animation: orbitSpin 29s linear infinite reverse;
}

.orbit-card {
    position: absolute;
    display: grid;
    place-items: center;
    gap: 7px;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text);
    background: rgba(6, 21, 27, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    transform-style: preserve-3d;
    animation: cardFade 6.5s ease-in-out infinite;
}

.orbit-card svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-card span {
    font-size: 12px;
    font-weight: 700;
}

.mini {
    color: var(--green);
    transform: translate3d(235px, -43px, 54px) rotateX(-66deg);
}

.app {
    color: var(--cyan);
    transform: translate3d(-235px, 43px, 54px) rotateX(-66deg);
    animation-delay: -2.1s;
}

.system {
    color: var(--cyan);
    transform: translate3d(-235px, 43px, 54px) rotateX(-66deg);
    animation-delay: -2.1s;
}

.site {
    color: var(--gold);
    transform: translate3d(310px, 52px, 38px) rotateX(-66deg);
    animation-delay: -1.4s;
}

.admin {
    color: #b6a2ff;
    transform: translate3d(-310px, -52px, 38px) rotateX(-66deg);
    animation-delay: -3.5s;
}

.tool {
    color: var(--coral);
    transform: translate3d(382px, -20px, 20px) rotateX(-66deg);
    animation-delay: -0.6s;
}

.game {
    color: #a9f0ff;
    transform: translate3d(-382px, 20px, 20px) rotateX(-66deg);
    animation-delay: -4.5s;
}

.ai {
    color: #f5c0ff;
    transform: translate3d(438px, 38px, 12px) rotateX(-66deg);
    animation-delay: -1.2s;
}

.agent {
    color: #8cffb5;
    transform: translate3d(-438px, -38px, 12px) rotateX(-66deg);
    animation-delay: -5.2s;
}

.content-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 34px;
    padding: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2,
.work-section h2,
.lab-section h2,
.contact-section h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: 0;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.capability-grid article {
    min-height: 136px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.capability-grid strong {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
}

.capability-grid span,
.work-section p,
.contact-card p {
    color: rgba(238, 249, 247, 0.72);
    line-height: 1.8;
}

.work-section,
.lab-section,
.contact-section {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
    gap: 32px;
    align-items: center;
}

.work-slogan {
    margin: 12px 0 4px;
    color: var(--gold) !important;
    font-weight: 700;
}

.note-panel {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    min-height: 190px;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(73, 230, 221, 0.14), rgba(255, 141, 120, 0.1));
    overflow: hidden;
}

.note-panel span {
    position: absolute;
    inset: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
}

.note-panel strong {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 118px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 620px) {
    .note-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

.compact-section {
    padding: 38px 44px;
}

.pill-row,
.lab-list {
    gap: 12px;
    flex-wrap: wrap;
}

.pill-row span,
.lab-list span {
    padding: 12px 16px;
}

.lab-section {
    grid-template-columns: 0.74fr 1fr;
}

.lab-list span {
    min-width: 132px;
    text-align: center;
}

.contact-card {
    padding: 28px;
    border: 1px solid rgba(73, 230, 221, 0.24);
    border-radius: 8px;
    background: rgba(73, 230, 221, 0.08);
}

.contact-card strong {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
}

.contact-qr {
    width: 150px;
    aspect-ratio: 1;
    border: 8px solid #fff;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.contact-info {
    display: grid;
    gap: 8px;
}

.contact-info span {
    color: rgba(238, 249, 247, 0.58);
    font-size: 13px;
}

.contact-info strong,
.contact-info a {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 18px;
    word-break: break-all;
}

.contact-info a {
    color: var(--cyan);
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    width: min(1180px, calc(100% - 40px));
    margin: -6px auto 34px;
    color: rgba(238, 249, 247, 0.58);
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
}

.site-footer a {
    color: rgba(238, 249, 247, 0.72);
}

.site-footer a:hover {
    color: var(--cyan);
}

@keyframes orbitSpin {
    from {
        transform: translate(-50%, -50%) rotateX(66deg) rotateZ(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(66deg) rotateZ(360deg);
    }
}

@keyframes floatBase {
    0%, 100% {
        transform: translate(-50%, -44%) translateZ(70px);
    }
    50% {
        transform: translate(-50%, -48%) translateZ(95px);
    }
}

@keyframes auroraPulse {
    0%, 100% {
        opacity: 0.45;
        filter: blur(20px);
    }
    50% {
        opacity: 0.9;
        filter: blur(13px);
    }
}

@keyframes ringGlow {
    0%, 100% {
        opacity: 0.42;
    }
    50% {
        opacity: 0.9;
    }
}

@keyframes cardFade {
    0%, 100% {
        opacity: 0.18;
        scale: 0.72;
    }
    18%, 72% {
        opacity: 1;
        scale: 1;
    }
}

@media (max-width: 980px) {
    .site-header {
        width: min(100% - 28px, 720px);
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 720px);
        padding-top: 16px;
    }

    .hero-copy h1 {
        font-size: 72px;
    }

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

    .visual-stage {
        height: 540px;
        transform: scale(0.88);
        transform-origin: center top;
    }

    .content-section {
        width: min(100% - 28px, 720px);
        padding: 28px;
    }

    .capability-grid,
    .work-section,
    .lab-section,
    .contact-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header {
        height: 66px;
    }

    .brand span {
        font-size: 15px;
    }

    .nav-action {
        display: none;
    }

    .nav-contact {
        min-height: 38px;
        padding: 0 14px;
    }

    .wechat-panel {
        right: -4px;
        width: 210px;
    }

    .hero-section {
        min-height: auto;
        padding-bottom: 34px;
    }

    .hero-copy h1 {
        font-size: 48px;
    }

    .hero-lead {
        font-size: 17px;
    }

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

    .visual-stage {
        height: 430px;
        transform: scale(0.66);
        transform-origin: center top;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2,
    .work-section h2,
    .lab-section h2,
    .contact-section h2 {
        font-size: 24px;
    }

    .content-section {
        padding: 22px;
    }

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

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

    .contact-qr {
        width: min(100%, 220px);
    }
}
