:root {
    --jx-modal-border: #c7974a;
    --jx-modal-header-bg: linear-gradient(135deg, #18243d 0%, #2b3f66 100%);
    --jx-modal-accent: #c93224;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #ebeff0;
    color: #1e293b;
    font-family: "Be Vietnam Pro", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

.xy-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Global Slim Top Bar */
.xy-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 38px;
    font-size: 12.5px;
    color: #475569;
    position: relative;
    z-index: 60;
}

.xy-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.xy-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #b91c1c;
}

.xy-topbar-brand img {
    height: 24px;
}

.xy-topbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.xy-topbar-links a:hover {
    color: #dc2626;
}

/* Panoramic Hero Stage */
.xy-hero {
    position: relative;
    min-height: 540px;
    background-color: #101933;
    background-image: url("/assets/themes/art/jxsj-xoyo-hero.jpg");
    background-size: cover;
    background-position: center top;
    color: #fff;
    overflow: hidden;
    padding-bottom: 120px;
}

.xy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 13, 28, 0.72) 0%, rgba(12, 20, 42, 0.25) 45%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}

.xy-hero-nav {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.xy-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.xy-logo-badge img {
    height: 52px;
    filter: drop-shadow(0 4px 14px rgba(251, 191, 36, 0.45));
}

.xy-logo-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
    font-weight: 800;
    color: #fef3c7;
    letter-spacing: 0.4px;
}

.xy-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.xy-nav-list a {
    display: block;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 13.5px;
    color: #e2e8f0;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

.xy-nav-list a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fde68a;
}

.xy-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.xy-hero-center {
    position: relative;
    z-index: 15;
    max-width: 820px;
    margin: 34px auto 0;
    padding: 0 18px;
    text-align: center;
}

.xy-hero-eyebrow {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 999px;
    border: 1px solid rgba(253, 224, 71, 0.55);
    background: rgba(15, 23, 42, 0.58);
    color: #fde68a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.xy-hero-center h1 {
    margin: 0 0 10px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 4.4vw, 50px);
    font-weight: 800;
    line-height: 1.15;
    color: #fff9e6;
    text-shadow: 0 6px 26px rgba(0, 0, 0, 0.72), 0 0 32px rgba(217, 119, 6, 0.45);
}

.xy-hero-center p {
    margin: 0 auto 18px;
    max-width: 640px;
    color: #e2e8f0;
    font-size: 14.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.xy-hero-tags {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 12.5px;
    color: #fef3c7;
}

/* Signature Cloud-Wave Transition */
.xy-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 16;
    pointer-events: none;
    line-height: 0;
}

.xy-hero-wave svg {
    width: 100%;
    height: 76px;
    display: block;
}

/* Floating Right Support Card (like Xoyo QR dock) */
.xy-hero-dock {
    position: absolute;
    right: 22px;
    top: 155px;
    z-index: 22;
    width: 150px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #d4af63;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    color: #1e293b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.xy-hero-dock strong {
    display: block;
    font-size: 12.5px;
    color: #991b1b;
    margin-bottom: 6px;
}

.xy-hero-dock .xy-dock-pill {
    display: block;
    padding: 6px 8px;
    margin-top: 6px;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 700;
    color: #0f172a;
}

.xy-hero-dock .xy-dock-pill:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Part 1: 3-Column Bento Strip */
.xy-bento-wrap {
    position: relative;
    z-index: 25;
    margin-top: -72px;
    margin-bottom: 18px;
}

.xy-bento-grid {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr) 396px;
    gap: 14px;
    align-items: stretch;
}

.xy-action-stack {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.xy-action-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 6px;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
    transition: transform 0.16s ease, filter 0.16s ease;
}

.xy-action-tile:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.xy-action-tile strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.xy-action-tile span {
    font-size: 11.5px;
    opacity: 0.88;
}

.xy-tile-red { background: linear-gradient(135deg, #d93f28 0%, #9b1c12 100%); }
.xy-tile-bronze { background: linear-gradient(135deg, #c77427 0%, #8b4713 100%); }
.xy-tile-gold { background: linear-gradient(135deg, #cfa144 0%, #986c1f 100%); }
.xy-tile-navy { background: linear-gradient(135deg, #334663 0%, #1b273b 100%); }

/* Center Banner Slider */
.xy-slider {
    position: relative;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    min-height: 292px;
    min-width: 0;
}

.xy-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.xy-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.xy-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xy-slide-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 34, 0.9) 65%);
    padding: 36px 108px 18px 20px;
    color: #fff;
}

.xy-slide-caption h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #fef3c7;
}

.xy-slide-caption p {
    margin: 0;
    font-size: 12.5px;
    color: #cbd5e1;
}

.xy-slider-dots {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 6;
    display: flex;
    gap: 7px;
}

.xy-slider-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 2px;
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
}

.xy-slider-dot.is-active {
    background: #ef4444;
    box-shadow: 0 0 0 2px #fff;
}

/* Right White Editorial News Card */
.xy-news-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px 16px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.xy-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
    gap: 8px;
}

.xy-news-tabs {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.xy-news-tab {
    border: 0;
    background: transparent;
    padding: 6px 2px 9px;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}

.xy-news-tab.is-active,
.xy-news-tab:hover {
    color: #de1e1e;
    border-bottom-color: #de1e1e;
}

.xy-more-link {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.xy-more-link:hover {
    color: #de1e1e;
}

.xy-news-pane {
    display: none;
}

.xy-news-pane.is-active {
    display: block;
}

.xy-news-headline {
    display: block;
    background: #f4f6f7;
    color: #0f172a;
    font-weight: 700;
    font-size: 14.5px;
    text-align: center;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xy-news-headline:hover {
    color: #de1e1e;
}

.xy-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xy-news-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6.5px 0;
    border-bottom: 1px dashed #eceff1;
    font-size: 13px;
}

.xy-news-row:last-child {
    border-bottom: 0;
}

.xy-news-row a {
    flex: 1;
    min-width: 0;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xy-news-row a:hover {
    color: #de1e1e;
}

.xy-news-tag {
    color: #de1e1e;
    font-weight: 700;
    margin-right: 4px;
}

.xy-news-date {
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* Inline Horizontal Auth Ribbon */
.xy-auth-strip {
    background: #ffffff;
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    border-left: 4px solid #c93224;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.xy-auth-label {
    font-weight: 800;
    font-size: 13.5px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xy-login-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.xy-login-inline input {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 13px;
    width: 142px;
    background: #f8fafc;
}

.xy-login-inline input:focus {
    outline: none;
    border-color: #c93224;
    background: #fff;
}

.xy-login-inline .xy-cap-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.xy-login-inline .xy-cap-box input {
    width: 86px;
}

.xy-login-inline img.jx-captcha {
    height: 32px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    cursor: pointer;
}

.xy-btn-red {
    border: 0;
    border-radius: 5px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #de1e1e 0%, #a51616 100%);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.xy-btn-outline {
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 7px 12px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
}

.xy-btn-outline:hover {
    border-color: #de1e1e;
    color: #de1e1e;
}

/* Part 2: Asymmetric 2x2 Showcase Cards */
.xy-part2-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.88fr) minmax(320px, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.xy-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 16px 18px 18px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
    min-width: 0;
}

.xy-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ebeff0;
    padding-bottom: 10px;
    margin-bottom: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.xy-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.xy-card-title::before {
    content: "";
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: #de1e1e;
}

.xy-mini-tabs {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.xy-mini-tab {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.xy-mini-tab.is-active,
.xy-mini-tab:hover {
    color: #de1e1e;
}

/* 4-Card Activity Gallery */
.xy-act-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.xy-act-item {
    display: flex;
    flex-direction: column;
}

.xy-act-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    position: relative;
}

.xy-act-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.xy-act-item:hover .xy-act-thumb img {
    transform: scale(1.06);
}

.xy-act-item h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #334155;
    line-height: 1.35;
    min-height: 36px;
}

.xy-act-pill {
    align-self: flex-start;
    padding: 2px 9px;
    border: 1px solid #de1e1e;
    color: #de1e1e;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 3px;
}

/* Server & Schedule Card */
.xy-server-poster {
    border-radius: 6px;
    overflow: hidden;
    height: 118px;
    margin-bottom: 12px;
    position: relative;
}

.xy-server-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xy-server-poster-label {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 100%);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.xy-day-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.xy-day-pill {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.xy-day-pill.is-active {
    background: #de1e1e;
    border-color: #de1e1e;
    color: #fff;
}

.xy-day-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.xy-day-list.is-active {
    display: block;
}

.xy-day-list li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #eef2f5;
    font-size: 12.5px;
    gap: 8px;
}

.xy-day-list li strong {
    color: #b91c1c;
    white-space: nowrap;
}

/* Guide Mosaic Card */
.xy-mosaic {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 10px;
}

.xy-mosaic-big {
    grid-row: span 2;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 230px;
}

.xy-mosaic-tile {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-height: 110px;
}

.xy-mosaic-big img,
.xy-mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xy-mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.88) 100%);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
}

.xy-mosaic-overlay strong {
    font-size: 13.5px;
    color: #fef3c7;
}

.xy-mosaic-overlay span {
    font-size: 11.5px;
    color: #cbd5e1;
}

/* Timeline Card */
.xy-timeline-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.xy-timeline-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.xy-timeline-list li:first-child a {
    color: #de1e1e;
    font-weight: 700;
}

/* Part 3: Architectural Five Elements Stage (Xoyo Centerpiece) */
.xy-factions-stage {
    background: linear-gradient(180deg, #edf1f3 0%, #e4eaed 100%);
    border-top: 1px solid #d8e0e4;
    border-bottom: 1px solid #d8e0e4;
    padding: 54px 0 64px;
    position: relative;
    overflow: hidden;
}

.xy-stage-header {
    text-align: center;
    margin-bottom: 34px;
}

.xy-stage-header h2 {
    margin: 0 0 6px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(24px, 3vw, 34px);
    color: #1e293b;
}

.xy-stage-header p {
    margin: 0;
    color: #64748b;
}

.xy-stage-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 110px 260px minmax(0, 1fr) 210px;
    gap: 22px;
    align-items: center;
    position: relative;
}

/* Left Vertical Five Elements Rail */
.xy-el-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.xy-el-rail::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 50%;
    border-left: 2px dashed #94a3b8;
    z-index: 0;
}

.xy-el-node {
    position: relative;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid #cbd5e1;
    background: #fff;
    color: #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.xy-el-node .han {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.xy-el-node .lbl {
    font-size: 10px;
    font-weight: 800;
    margin-top: 2px;
}

.xy-el-node.is-active {
    transform: scale(1.12);
    background: #1e293b;
    border-color: #c7974a;
    color: #fde68a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}

/* Ink Scroll Lore Card */
.xy-scroll-card {
    background: linear-gradient(180deg, #1f2a38 0%, #151c27 100%);
    border: 2px solid #b68c48;
    border-radius: 10px;
    padding: 24px 20px;
    color: #e2e8f0;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.2);
    min-height: 360px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.xy-scroll-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(201, 50, 36, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.xy-scroll-card h3 {
    margin: 0 0 8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: #fde68a;
}

.xy-scroll-route {
    font-size: 12.5px;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.xy-scroll-card p {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #cbd5e1;
}

/* Center Rotating Bagua Stage + Seamless Ink-Wash Character */
.xy-bagua-wrap {
    position: relative;
    height: 410px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xy-watermark-han {
    position: absolute;
    font-size: 270px;
    font-weight: 900;
    color: rgba(148, 163, 184, 0.16);
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.xy-bagua-ring {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 2px dashed rgba(148, 163, 184, 0.45);
    animation: xySpinSlow 28s linear infinite;
    pointer-events: none;
}

.xy-bagua-ring-inner {
    position: absolute;
    width: 285px;
    height: 285px;
    border-radius: 50%;
    border: 1.5px solid rgba(199, 151, 74, 0.45);
    animation: xySpinSlowRev 18s linear infinite;
    pointer-events: none;
}

@keyframes xySpinSlow {
    to { transform: rotate(360deg); }
}

@keyframes xySpinSlowRev {
    to { transform: rotate(-360deg); }
}

.xy-char-img {
    position: relative;
    z-index: 4;
    max-height: 360px;
    width: auto;
    mix-blend-mode: multiply;
    filter: contrast(1.06);
    -webkit-mask-image: radial-gradient(ellipse 68% 72% at 55% 48%, #000 58%, transparent 94%);
    mask-image: radial-gradient(ellipse 68% 72% at 55% 48%, #000 58%, transparent 94%);
}

/* Right Faction Selector Ribbons */
.xy-fac-ribbons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xy-fac-ribbon {
    border: 1.5px solid #cbd5e1;
    background: #fff;
    border-radius: 8px;
    padding: 13px 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.xy-fac-ribbon strong {
    display: block;
    font-size: 15px;
    color: #0f172a;
}

.xy-fac-ribbon span {
    font-size: 12px;
    color: #64748b;
}

.xy-fac-ribbon.is-active {
    background: linear-gradient(135deg, #de1e1e 0%, #9b1c12 100%);
    border-color: #c7974a;
    transform: translateX(-8px);
}

.xy-fac-ribbon.is-active strong,
.xy-fac-ribbon.is-active span {
    color: #fff;
}

/* Part 4: Contact & Footer */
.xy-part4 {
    padding: 26px 0 34px;
}

.xy-part4-grid {
    display: grid;
    grid-template-columns: 1.88fr 1fr;
    gap: 16px;
}

.xy-support-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f5f7f8;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.xy-support-tile .icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.xy-footer {
    background: #191a1e;
    color: #94a3b8;
    padding: 24px 18px 28px;
    font-size: 12.5px;
}

.xy-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.xy-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.xy-footer-links a:hover {
    color: #fde68a;
}

/* News & Article Inner Views for Theme 2 */
.xy-inner-shell {
    max-width: 1200px;
    margin: -56px auto 36px;
    padding: 0 18px;
    position: relative;
    z-index: 25;
}

.xy-article-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    min-height: 540px;
}

.xy-article-content {
    line-height: 1.72;
    color: #1e293b;
    overflow-x: auto;
}

.xy-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.xy-article-content th,
.xy-article-content td {
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
}

.xy-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 22px;
    flex-wrap: wrap;
}

.xy-pagination a,
.xy-pagination span {
    padding: 6px 12px;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.xy-pagination span.is-cur {
    background: #de1e1e;
    border-color: #de1e1e;
    color: #fff;
}

.xy-go-top {
    position: fixed;
    right: 18px;
    bottom: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1e293b;
    color: #fde68a;
    border: 2px solid #c7974a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.xy-go-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 1120px) {
    .xy-hero-dock {
        display: none;
    }
    .xy-bento-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .xy-action-stack {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .xy-part2-grid,
    .xy-part4-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .xy-stage-grid {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }
    .xy-el-rail {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .xy-el-rail::before {
        display: none;
    }
    .xy-fac-ribbons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .xy-fac-ribbon.is-active {
        transform: none;
    }
}

@media (max-width: 780px) {
    .xy-topbar {
        height: auto;
        min-height: 36px;
        padding: 6px 0;
    }
    .xy-topbar-inner {
        flex-wrap: wrap;
        gap: 6px;
    }
    .xy-topbar-links {
        gap: 10px;
        font-size: 12px;
    }
    .xy-action-stack {
        grid-template-columns: minmax(0, 1fr);
    }
    .xy-news-tabs {
        overflow-x: auto;
        gap: 10px;
    }
    .xy-nav-toggle {
        display: inline-block;
    }
    .xy-nav-list {
        display: none;
        position: absolute;
        top: 72px;
        left: 18px;
        right: 18px;
        background: rgba(15, 23, 42, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.16);
        border-radius: 10px;
        padding: 10px;
        flex-direction: column;
    }
    .xy-nav-list.is-open {
        display: flex;
    }
    .xy-act-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .xy-mosaic {
        grid-template-columns: minmax(0, 1fr);
    }
    .xy-bagua-ring {
        width: 280px;
        height: 280px;
    }
    .xy-bagua-ring-inner {
        width: 220px;
        height: 220px;
    }
    .xy-login-inline {
        justify-content: flex-start;
    }
    .xy-login-inline input {
        width: 100%;
    }
    .xy-slide-caption {
        padding: 36px 16px 42px;
    }
}
