:root {
    --site-bg: #160c07;
    --site-panel: rgba(53, 25, 10, 0.76);
    --site-panel-soft: rgba(106, 63, 30, 0.22);
    --site-line: rgba(224, 184, 116, 0.24);
    --site-gold: #f4d79a;
    --site-gold-strong: #e2b556;
    --site-text: #fff4df;
    --site-muted: rgba(255, 239, 210, 0.72);
    --site-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(255, 225, 170, 0.18), transparent 22%),
        radial-gradient(circle at bottom right, rgba(255, 225, 170, 0.14), transparent 20%),
        linear-gradient(180deg, #211008 0%, #140a06 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.22;
    pointer-events: none;
}

.site-shell {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 28px 72px;
    overflow: hidden;
}

.site-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.site-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 233, 178, 0.96), rgba(255, 202, 116, 0.36) 62%, rgba(255, 202, 116, 0));
    box-shadow: 0 0 18px rgba(255, 214, 138, 0.45);
    opacity: 0;
    animation: site-particle-float 10s linear infinite;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border: 1px solid var(--site-line);
    border-radius: 28px;
    background: rgba(43, 19, 9, 0.82);
    backdrop-filter: blur(14px);
    box-shadow: var(--site-shadow);
}

main {
    position: relative;
    z-index: 1;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: auto 24px -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 215, 154, 0.52), transparent);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.site-brand img {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.22);
}

.site-brand strong {
    display: block;
    font-size: 30px;
    letter-spacing: 0.04em;
}

.site-brand span {
    color: var(--site-muted);
    font-size: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    color: var(--site-text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-nav a::before,
.hero-actions a::before,
.portal-card::before,
.gallery-item::before,
.news-card::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0.03) 58%, transparent 74%);
    transform: translateX(-140%);
    transition: transform 0.75s ease;
    pointer-events: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(244, 215, 154, 0.36);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.hero-actions a:hover::before,
.hero-actions a:focus-visible::before,
.portal-card:hover::before,
.portal-card:focus-visible::before,
.gallery-item:hover::before,
.news-card:hover::before {
    transform: translateX(115%);
}

.hero-section,
.portal-section,
.gallery-section,
.feature-section,
.world-section {
    border: 1px solid var(--site-line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(89, 45, 20, 0.64), rgba(38, 18, 8, 0.78));
    box-shadow: var(--site-shadow);
}

.hero-section {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 42px;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(244, 215, 154, 0.08);
    border-radius: 28px;
    pointer-events: none;
}

.hero-kicker,
.world-tag {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 215, 154, 0.28);
    color: var(--site-gold);
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.world-copy h2 {
    margin: 18px 0 14px;
    font-size: clamp(40px, 4vw, 62px);
    line-height: 1.08;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.hero-copy p,
.world-copy p,
.section-title p,
.feature-card p {
    color: var(--site-muted);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 28px 0 32px;
}

.hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 17px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-primary {
    color: #4a2909;
    background: linear-gradient(180deg, #ffe8bb 0%, #dcac47 100%);
}

.hero-secondary {
    color: var(--site-text);
    border: 1px solid rgba(244, 215, 154, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
    filter: brightness(1.04);
}

.hero-actions a:active {
    transform: translateY(-1px) scale(0.99);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-stats li,
.feature-card {
    padding: 20px 22px;
    border: 1px solid rgba(244, 215, 154, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.hero-stats strong,
.feature-card h3 {
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
}

.hero-stats span {
    color: var(--site-muted);
    line-height: 1.7;
}

.hero-visual {
    position: relative;
    min-height: 560px;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(0);
    opacity: 0.88;
    pointer-events: none;
}

.orb-a {
    width: 360px;
    height: 360px;
    top: -120px;
    right: 18%;
    background: radial-gradient(circle, rgba(255, 216, 153, 0.22), rgba(255, 216, 153, 0));
    animation: site-orb-a 11s ease-in-out infinite alternate;
}

.orb-b {
    width: 260px;
    height: 260px;
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(255, 229, 190, 0.16), rgba(255, 229, 190, 0));
    animation: site-orb-b 13s ease-in-out infinite alternate;
}

.orb-c {
    width: 200px;
    height: 200px;
    top: 44%;
    right: -30px;
    background: radial-gradient(circle, rgba(222, 174, 85, 0.16), rgba(222, 174, 85, 0));
    animation: site-orb-c 9s ease-in-out infinite alternate;
}

.hero-card {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(244, 215, 154, 0.16);
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(255, 236, 199, 0.16), rgba(51, 24, 10, 0.94));
    box-shadow: var(--site-shadow);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.hero-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero-card-large {
    inset: 20px 40px 40px 40px;
    padding: 40px;
}

.hero-card-small {
    width: 190px;
    height: 190px;
    padding: 18px;
}

.floating-a {
    top: 18px;
    left: 0;
}

.floating-b {
    right: 0;
    bottom: 0;
}

.gallery-section,
.feature-section,
.portal-section,
.world-section {
    margin-top: 28px;
    padding: 34px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 980px;
    margin: 0;
}

.portal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(244, 215, 154, 0.16);
    color: var(--site-text);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    font: inherit;
    text-align: left;
    background:
        radial-gradient(circle at top right, rgba(255, 234, 195, 0.18), transparent 28%),
        linear-gradient(180deg, rgba(100, 48, 18, 0.78), rgba(39, 19, 9, 0.92));
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
    -webkit-tap-highlight-color: transparent;
}

.portal-card:hover,
.portal-card:focus-visible,
.hero-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 215, 154, 0.34);
    box-shadow: 0 34px 64px rgba(0, 0, 0, 0.38);
}

.portal-card:active,
.site-nav a:active {
    transform: translateY(-1px) scale(0.99);
}

.hero-stats li:hover,
.hero-stats li:focus-within,
.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(244, 215, 154, 0.28);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.16);
}

.portal-card strong {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    font-size: 38px;
    text-align: left;
}

.portal-card span {
    position: relative;
    z-index: 1;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.8;
    text-align: left;
}

.portal-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 34px;
    margin-bottom: 18px;
    padding: 0 14px;
    border-radius: 999px;
    color: #4a2909 !important;
    background: linear-gradient(180deg, #f9e4b8 0%, #dea94b 100%);
    font-size: 13px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-download::after,
.portal-group::after {
    content: "";
    position: absolute;
    right: -12px;
    bottom: -12px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 229, 190, 0.18), rgba(255, 229, 190, 0));
}

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

.section-title h2 {
    margin: 0;
    font-size: 34px;
}

.gallery-marquee {
    display: flex;
    overflow: hidden;
    gap: 18px;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.gallery-track {
    display: flex;
    gap: 18px;
    min-width: max-content;
    animation: site-marquee 28s linear infinite;
    will-change: transform;
}

.gallery-item {
    display: grid;
    place-items: center;
    width: 220px;
    height: 220px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(244, 215, 154, 0.14);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 215, 154, 0.26);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
}

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

.news-section {
    margin-top: 28px;
    padding: 34px;
    border: 1px solid var(--site-line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(89, 45, 20, 0.64), rgba(38, 18, 8, 0.78));
    box-shadow: var(--site-shadow);
}

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

.news-card {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(244, 215, 154, 0.14);
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 215, 154, 0.3);
    box-shadow: 0 20px 34px rgba(0, 0, 0, 0.18);
}

.news-card:active,
.gallery-item:active {
    transform: translateY(-1px) scale(0.992);
}

.news-date {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--site-gold);
    font-size: 13px;
}

.news-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.news-card p {
    margin: 0;
    color: var(--site-muted);
    font-size: 16px;
    line-height: 1.8;
}

.site-modal[hidden] {
    display: none;
}

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

.site-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 6, 3, 0.66);
    backdrop-filter: blur(8px);
}

.site-modal-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    margin: min(10vh, 80px) auto 0;
    padding: 28px;
    border-radius: 30px;
    border: 1px solid rgba(244, 215, 154, 0.22);
    background: linear-gradient(180deg, rgba(86, 39, 16, 0.94), rgba(35, 16, 8, 0.98));
    box-shadow: 0 38px 72px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.site-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(244, 215, 154, 0.24);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--site-text);
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.site-modal-close:hover,
.site-modal-close:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(244, 215, 154, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.site-modal-card h3 {
    margin: 18px 0 10px;
    font-size: 36px;
}

.site-modal-card p {
    margin: 0 auto 16px;
    color: var(--site-muted);
    line-height: 1.8;
}

.site-qr-frame {
    display: grid;
    place-items: center;
    width: min(72vw, 280px);
    height: min(72vw, 280px);
    margin: 22px auto 18px;
    padding: 16px;
    border-radius: 28px;
    border: 1px solid rgba(244, 215, 154, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.site-qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-qr-hint {
    max-width: 420px;
}

.site-qr-link {
    display: inline-flex;
    min-width: 180px;
    margin-top: 10px;
}

@keyframes site-orb-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(14px, -10px, 0) scale(1.04); }
}

@keyframes site-orb-b {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-12px, 12px, 0) scale(1.06); }
}

@keyframes site-orb-c {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(10px, -8px, 0) scale(1.05); }
}

@keyframes site-particle-float {
    0% {
        transform: translate3d(0, 18px, 0) scale(0.6);
        opacity: 0;
    }
    10% {
        opacity: 0.82;
    }
    60% {
        opacity: 0.58;
    }
    100% {
        transform: translate3d(22px, -160px, 0) scale(1.15);
        opacity: 0;
    }
}

.p-1 { left: 6%; top: 22%; animation-delay: 0s; animation-duration: 10s; }
.p-2 { left: 14%; top: 68%; animation-delay: 1.2s; animation-duration: 12s; }
.p-3 { left: 24%; top: 38%; animation-delay: 2.8s; animation-duration: 9.5s; }
.p-4 { left: 38%; top: 72%; animation-delay: 0.6s; animation-duration: 11.5s; }
.p-5 { left: 44%; top: 26%; animation-delay: 3.2s; animation-duration: 9s; }
.p-6 { left: 56%; top: 60%; animation-delay: 1.6s; animation-duration: 12.5s; }
.p-7 { left: 64%; top: 32%; animation-delay: 2.2s; animation-duration: 10.5s; }
.p-8 { left: 72%; top: 78%; animation-delay: 4.4s; animation-duration: 13s; }
.p-9 { left: 80%; top: 24%; animation-delay: 2.6s; animation-duration: 10s; }
.p-10 { left: 86%; top: 54%; animation-delay: 3.8s; animation-duration: 9.2s; }
.p-11 { left: 92%; top: 42%; animation-delay: 5.1s; animation-duration: 11.4s; }
.p-12 { left: 30%; top: 88%; animation-delay: 6.2s; animation-duration: 12.8s; }

.world-section {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

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

.world-stack img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(244, 215, 154, 0.14);
    background: rgba(255, 255, 255, 0.04);
}

@keyframes site-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 9px));
    }
}

@media (max-width: 1180px) {
    .hero-section,
    .world-section {
        grid-template-columns: 1fr;
    }

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

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

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

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }
}

@media (max-width: 860px) {
    .site-shell {
        padding: 18px 18px 48px;
    }

    .site-header {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section,
    .gallery-section,
    .feature-section,
    .portal-section,
    .world-section {
        padding: 24px;
        border-radius: 26px;
    }

    .hero-stats,
    .feature-grid,
    .world-stack,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .portal-card {
        min-height: 220px;
        padding: 24px;
    }

    .portal-card strong {
        font-size: 30px;
    }

    .hero-card-small {
        width: 150px;
        height: 150px;
    }

    .gallery-item {
        width: 180px;
        height: 180px;
    }

    .site-modal-card {
        width: min(94vw, 560px);
        margin-top: 40px;
        padding: 22px;
    }

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
    }

    .section-title h2,
    .section-title p {
        text-align: left;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
    }

    .hero-actions a {
        width: 100%;
    }
}
