* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #050814;
    --text: #f7f9ff;
    --muted: #9aa4c1;
    --line: rgba(166, 184, 255, .25);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 26%, rgba(43, 112, 255, .22), transparent 28rem),
        radial-gradient(circle at 84% 18%, rgba(136, 78, 255, .18), transparent 24rem),
        linear-gradient(180deg, #050814 0%, #071027 48%, #050814 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-shell {
    position: relative;
    width: min(100%, 920px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 24px 44px;
    overflow: hidden;
}

.site-shell::before {
    content: "";
    position: absolute;
    inset: 160px -10% auto;
    height: 260px;
    border: 1px solid rgba(59, 129, 255, .36);
    border-top-color: transparent;
    border-radius: 0 0 50% 50%;
    filter: drop-shadow(0 0 20px rgba(42, 115, 255, .45));
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(24px, 5vw, 38px);
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #40e4ff, #346dff 52%, #8d4cff);
    box-shadow: 0 0 26px rgba(52, 109, 255, .48);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
}

.menu-button {
    display: grid;
    width: 50px;
    height: 50px;
    place-content: center;
    gap: 7px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: #f5f7ff;
}

.hero {
    position: relative;
    z-index: 1;
    padding: 74px 0 44px;
    text-align: center;
}

.hero h1 {
    margin: 0;
    font-size: clamp(58px, 13vw, 118px);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
    background: linear-gradient(92deg, #1aa2ff 4%, #f8fbff 46%, #ebb1ff 96%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 34px rgba(62, 137, 255, .35);
}

.hero p {
    margin: 24px 0 42px;
    color: #c7c1f5;
    font-size: clamp(20px, 4.5vw, 34px);
    letter-spacing: 0;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #7ca4ff, #182eb8 58%, transparent 70%);
    box-shadow: 0 0 28px rgba(66, 114, 255, .7);
    opacity: .76;
}

.orbit-one {
    width: 48px;
    height: 48px;
    left: 9%;
    top: 54%;
}

.orbit-two {
    width: 42px;
    height: 42px;
    right: 10%;
    top: 60%;
}

.search-box {
    display: flex;
    align-items: center;
    width: min(100%, 720px);
    min-height: 86px;
    margin: 0 auto;
    padding: 0 28px;
    border: 1px solid rgba(197, 207, 255, .45);
    border-radius: 28px;
    background: rgba(10, 15, 32, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 0 34px rgba(74, 120, 255, .22);
    backdrop-filter: blur(18px);
}

.search-box svg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 18px;
    stroke: #939bc0;
    stroke-width: 2.4;
    fill: none;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: clamp(20px, 4vw, 30px);
}

.search-box input::placeholder {
    color: #8f96b3;
}

.promo-carousel {
    position: relative;
    z-index: 2;
    margin: 0 0 26px;
    border: 1px solid rgba(67, 127, 255, .55);
    border-radius: 22px;
    background:
        radial-gradient(circle at 74% 46%, rgba(59, 128, 255, .27), transparent 38%),
        radial-gradient(circle at 30% 20%, rgba(120, 76, 255, .14), transparent 42%),
        linear-gradient(135deg, rgba(16, 35, 86, .88), rgba(7, 13, 31, .86));
    box-shadow: 0 0 28px rgba(47, 113, 255, .28), inset 0 0 30px rgba(255, 255, 255, .03);
    overflow: hidden;
}

.carousel-track {
    position: relative;
    min-height: 150px;
}

.promo-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42%;
    align-items: center;
    gap: 18px;
    padding: 24px 62px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(16px);
    transition: opacity .35s ease, transform .35s ease;
}

.promo-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.promo-copy {
    display: grid;
    justify-items: start;
    min-width: 0;
}

.promo-copy strong {
    color: #fff;
    font-size: clamp(26px, 5vw, 42px);
    line-height: 1.08;
}

.promo-copy span {
    margin-top: 10px;
    color: #c7d2ee;
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.3;
}

.promo-copy em {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-top: 18px;
    padding: 0 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #27a9ff, #6b45ff);
    box-shadow: 0 0 22px rgba(68, 118, 255, .55);
    color: #fff;
    font-style: normal;
    font-size: 17px;
    font-weight: 800;
}

.promo-copy b {
    font-size: 22px;
    line-height: 1;
}

.promo-art {
    position: relative;
    display: block;
    min-height: 112px;
}

.promo-art::before {
    content: "";
    position: absolute;
    inset: 48% 4% auto 0;
    height: 38px;
    border: 1px solid rgba(45, 138, 255, .5);
    border-top-color: transparent;
    border-radius: 50%;
    transform: rotate(-7deg);
    filter: drop-shadow(0 0 12px rgba(28, 130, 255, .6));
}

.promo-image {
    min-height: 118px;
    border-radius: 18px;
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 24px rgba(69, 126, 255, .35);
}

.promo-image::before {
    display: none;
}

.art-tile {
    position: absolute;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(106, 160, 255, .6);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(46, 119, 255, .5), rgba(19, 28, 72, .72));
    color: #82d7ff;
    box-shadow: 0 0 20px rgba(61, 127, 255, .38), inset 0 0 18px rgba(255, 255, 255, .05);
    font-size: 27px;
    font-weight: 900;
}

.art-tile svg {
    width: 35px;
    height: 35px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.art-ai {
    left: 18%;
    top: 14%;
}

.art-pen {
    right: 20%;
    top: 0;
    color: #bb7cff;
    transform: rotate(10deg);
}

.art-image {
    right: 4%;
    top: 40%;
}

.art-layers {
    left: 48%;
    bottom: 0;
    color: #4fd7ff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 31, 67, .76);
    box-shadow: 0 0 16px rgba(57, 121, 255, .28);
    color: #d7e3ff;
    cursor: pointer;
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
}

.carousel-prev {
    left: -1px;
}

.carousel-next {
    right: -1px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.carousel-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(170, 185, 221, .36);
    cursor: pointer;
}

.carousel-dots button.is-active {
    width: 26px;
    background: #2da3ff;
    box-shadow: 0 0 12px rgba(45, 163, 255, .75);
}

.card-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.nav-card {
    --accent: #3698ff;
    --accent-soft: rgba(54, 152, 255, .18);
    position: relative;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 42px;
    align-items: center;
    min-height: 150px;
    padding: 24px;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 18%);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 20%, var(--accent-soft), transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent), transparent 62%), inset 0 0 26px rgba(255, 255, 255, .03);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nav-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 0 34px color-mix(in srgb, var(--accent), transparent 42%), inset 0 0 28px rgba(255, 255, 255, .04);
}

.icon-frame {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent);
    filter: drop-shadow(0 0 16px color-mix(in srgb, var(--accent), transparent 38%));
}

.icon-frame svg,
.icon-frame img {
    width: 54px;
    height: 54px;
}

.icon-frame svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-frame img {
    object-fit: contain;
}

.card-copy {
    min-width: 0;
}

.card-copy strong {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(22px, 3.7vw, 32px);
    line-height: 1.14;
}

.card-copy span {
    display: block;
    color: #bdc4d8;
    font-size: clamp(16px, 2.8vw, 25px);
    line-height: 1.55;
}

.arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 28px;
    font-weight: 800;
}

.theme-blue { --accent: #3698ff; --accent-soft: rgba(54, 152, 255, .18); }
.theme-green { --accent: #43e777; --accent-soft: rgba(67, 231, 119, .16); }
.theme-amber { --accent: #ffae35; --accent-soft: rgba(255, 174, 53, .16); }
.theme-violet { --accent: #a85cff; --accent-soft: rgba(168, 92, 255, .17); }
.theme-rose { --accent: #ff5176; --accent-soft: rgba(255, 81, 118, .17); }
.theme-cyan { --accent: #36e6f4; --accent-soft: rgba(54, 230, 244, .16); }
.theme-pink { --accent: #ff78d7; --accent-soft: rgba(255, 120, 215, .16); }
.theme-slate { --accent: #b8c3dc; --accent-soft: rgba(184, 195, 220, .16); }

.empty-state {
    display: none;
    grid-column: 1 / -1;
    padding: 42px 20px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 20px;
}

.empty-state.show {
    display: block;
}

.footer {
    padding: 54px 0 4px;
    color: #7d849d;
    text-align: center;
    font-size: clamp(16px, 3vw, 24px);
}

.announcement-mask {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 10, 18, .58);
    backdrop-filter: blur(7px);
}

.announcement-mask.is-hidden {
    display: none;
}

.announcement-dialog {
    width: min(680px, 100%);
    max-height: min(88vh, 820px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 28px 36px 22px;
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 34px;
    background: #f4effb;
    color: #282433;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .32);
}

.announcement-dialog h2 {
    margin: 0 0 18px;
    color: #16121f;
    font-size: 27px;
    font-weight: 800;
}

.announcement-content {
    overflow: auto;
    padding-right: 4px;
    color: rgba(35, 31, 44, .78);
    font-size: 16px;
    line-height: 1.68;
}

.announcement-accent {
    font-weight: 800;
}

.announcement-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.announcement-actions a,
.announcement-actions button {
    min-height: 36px;
    border: 0;
    background: transparent;
    color: #5b4a92;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 760px) {
    .site-shell {
        padding: 18px 12px 26px;
    }

    .site-shell::before {
        inset: 112px -18% auto;
        height: 168px;
    }

    .brand {
        gap: 10px;
        font-size: clamp(24px, 7vw, 32px);
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 27px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
        gap: 6px;
    }

    .menu-button span {
        width: 30px;
        height: 3px;
    }

    .hero {
        padding: 34px 0 22px;
    }

    .hero h1 {
        font-size: clamp(48px, 15vw, 68px);
        text-shadow: 0 0 22px rgba(62, 137, 255, .3);
    }

    .hero p {
        margin: 12px 0 22px;
        font-size: clamp(17px, 5vw, 24px);
    }

    .orbit-one {
        width: 30px;
        height: 30px;
        top: 58%;
    }

    .orbit-two {
        width: 28px;
        height: 28px;
        top: 62%;
    }

    .search-box {
        min-height: 54px;
        padding: 0 16px;
        border-radius: 18px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 0 22px rgba(74, 120, 255, .18);
    }

    .search-box svg {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
        margin-right: 10px;
    }

    .search-box input {
        font-size: 17px;
    }

    .card-grid {
        gap: 10px;
    }

    .promo-carousel {
        margin-bottom: 18px;
        border-radius: 18px;
    }

    .carousel-track {
        min-height: 118px;
    }

    .promo-slide {
        grid-template-columns: minmax(0, 1fr) 38%;
        gap: 10px;
        padding: 17px 46px;
    }

    .promo-copy strong {
        font-size: clamp(22px, 7vw, 30px);
    }

    .promo-copy span {
        margin-top: 6px;
        font-size: clamp(13px, 3.8vw, 17px);
    }

    .promo-copy em {
        min-height: 32px;
        margin-top: 10px;
        padding: 0 15px;
        border-radius: 11px;
        font-size: 14px;
    }

    .promo-art {
        min-height: 86px;
    }

    .promo-image {
        min-height: 86px;
        border-radius: 14px;
    }

    .art-tile {
        width: 43px;
        height: 43px;
        border-radius: 12px;
        font-size: 20px;
    }

    .art-tile svg {
        width: 25px;
        height: 25px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 34px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 7px;
    }

    .carousel-dots button {
        width: 8px;
        height: 8px;
    }

    .carousel-dots button.is-active {
        width: 20px;
    }

    .nav-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 9px;
        min-height: 96px;
        padding: 11px 9px;
        border-radius: 16px;
        box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 68%), inset 0 0 20px rgba(255, 255, 255, .025);
    }

    .icon-frame {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .icon-frame svg,
    .icon-frame img {
        width: 29px;
        height: 29px;
    }

    .card-copy strong {
        margin-bottom: 5px;
        padding-right: 26px;
        font-size: clamp(17px, 4.6vw, 21px);
        line-height: 1.12;
    }

    .card-copy span {
        display: -webkit-box;
        overflow: hidden;
        font-size: clamp(12px, 3.3vw, 15px);
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .arrow {
        position: absolute;
        right: 9px;
        bottom: 9px;
        width: 25px;
        height: 25px;
        font-size: 17px;
    }

    .announcement-mask {
        padding: 12px;
    }

    .announcement-dialog {
        width: min(100%, 390px);
        max-height: 86vh;
        padding: 20px 24px 18px;
        border-radius: 28px;
    }

    .announcement-dialog h2 {
        margin-bottom: 12px;
        font-size: 24px;
    }

    .announcement-content {
        font-size: 13px;
        line-height: 1.58;
    }

    .announcement-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        margin-top: 14px;
    }

    .announcement-actions a,
    .announcement-actions button {
        min-width: 0;
        min-height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 460px) {
    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 26px;
    }

    .search-box {
        min-height: 52px;
        border-radius: 17px;
        padding: 0 14px;
    }

    .search-box svg {
        width: 24px;
        height: 24px;
        margin-right: 9px;
    }

    .nav-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
        min-height: 92px;
    }

    .promo-slide {
        padding-right: 40px;
        padding-left: 40px;
    }

    .promo-copy strong {
        font-size: 24px;
    }

    .promo-copy span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
    }

    .announcement-dialog {
        max-height: 88vh;
        padding: 18px 20px 16px;
        border-radius: 26px;
    }

    .announcement-dialog h2 {
        margin-bottom: 10px;
        font-size: 22px;
    }

    .announcement-content {
        font-size: 12px;
        line-height: 1.5;
    }

    .announcement-actions {
        margin-top: 12px;
    }

    .announcement-actions a,
    .announcement-actions button {
        min-height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .site-shell {
        padding-right: 10px;
        padding-left: 10px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero p {
        margin-bottom: 18px;
        font-size: 16px;
    }

    .search-box {
        min-height: 50px;
    }

    .card-grid {
        gap: 8px;
    }

    .nav-card {
        min-height: 88px;
        padding: 10px 8px;
    }

    .carousel-track {
        min-height: 106px;
    }

    .promo-slide {
        padding: 14px 36px;
    }

    .promo-copy strong {
        font-size: 22px;
    }

    .promo-copy em {
        min-height: 28px;
        margin-top: 8px;
        padding: 0 12px;
        font-size: 13px;
    }

    .art-tile {
        width: 38px;
        height: 38px;
    }

    .card-copy strong {
        font-size: 16px;
    }

    .card-copy span {
        font-size: 12px;
    }
}
