/* 
 * HoYoverse-Inspired Homepage Style
 * Layered fullscreen design with slider, news section, and footer
 */

/* ==================== AUTH MODALS ==================== */
.hoyo-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hoyo-auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.hoyo-auth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.hoyo-auth-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease;
}

/* Login modal background */
#loginModal .hoyo-auth-modal-content {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.88) 100%),
        url('/images/login/illust-3.png');
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
}

/* Register modal background */
#registerModal .hoyo-auth-modal-content {
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.88) 100%),
        url('/images/register/illust-4.png');
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-position: center, center;
}

.hoyo-auth-modal.active .hoyo-auth-modal-content {
    transform: translateY(0) scale(1);
}

.hoyo-auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.hoyo-auth-modal-close:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

.hoyo-auth-modal-logo {
    text-align: center;
    margin-bottom: 20px;
}

.hoyo-auth-modal-logo span {
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 1px;
}

.hoyo-auth-modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.hoyo-auth-modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #718096;
    margin: 0 0 25px 0;
}

.hoyo-auth-modal-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hoyo-auth-modal-alert.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.hoyo-auth-modal-alert.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #059669;
    border: 1px solid #6ee7b7;
}

.hoyo-auth-modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hoyo-auth-form-group {
    display: flex;
    flex-direction: column;
}

.hoyo-auth-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hoyo-auth-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    background: #f7fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.hoyo-auth-form-group input:focus {
    outline: none;
    border-color: #4fc3f7;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.15);
}

.hoyo-auth-form-group .hoyo-form-hint {
    font-size: 11px;
    color: #a0aec0;
    margin-top: 6px;
}

.hoyo-password-meter {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.hoyo-password-meter-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hoyo-password-meter-bar.strength-weak {
    width: 33%;
    background: linear-gradient(90deg, #f87171, #ef4444);
}

.hoyo-password-meter-bar.strength-medium {
    width: 66%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.hoyo-password-meter-bar.strength-strong {
    width: 100%;
    background: linear-gradient(90deg, #34d399, #10b981);
}

.hoyo-auth-modal-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hoyo-auth-modal-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.4);
}

.hoyo-auth-modal-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hoyo-auth-modal-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hoyo-auth-modal-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.hoyo-auth-modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.hoyo-auth-modal-footer p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

.hoyo-auth-modal-footer a {
    color: #4fc3f7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hoyo-auth-modal-footer a:hover {
    color: #0288d1;
    text-decoration: underline;
}

/* Modal responsive */
@media (max-width: 480px) {
    .hoyo-auth-modal-content {
        padding: 30px 25px;
        margin: 15px;
        width: calc(100% - 30px);
    }

    .hoyo-auth-modal-logo span {
        font-size: 20px;
    }

    .hoyo-auth-modal-title {
        font-size: 20px;
    }
}

/* ==================== RESET & BASE ==================== */
html {
    overflow-x: hidden;
}

.hoyo-page {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
    min-height: 100vh;
}

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

/* ==================== NAVIGATION ==================== */
.hoyo-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.hoyo-nav>* {
    pointer-events: auto;
}

.hoyo-nav-logo {
    visibility: visible;
}

.hoyo-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 15px 60px;
    backdrop-filter: blur(20px);
}

.hoyo-nav-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hoyo-nav-logo span {
    color: #4fc3f7;
}

.hoyo-nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hoyo-nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.hoyo-nav-menu a:hover {
    color: #fff;
}

.hoyo-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4fc3f7;
    transition: width 0.3s ease;
}

.hoyo-nav-menu a:hover::after {
    width: 100%;
}

.hoyo-nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hoyo-btn-login {
    padding: 10px 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hoyo-btn-login:hover {
    border-color: #4fc3f7;
    color: #4fc3f7;
}

/* Cart button in navigation */
.hoyo-btn-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 154, 60, 0.5);
    background: rgba(255, 154, 60, 0.1);
    color: #ff9a3c;
    font-size: 16px;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.hoyo-btn-cart:hover {
    border-color: #ff9a3c;
    background: rgba(255, 154, 60, 0.2);
    color: #ffb366;
    transform: scale(1.05);
}

.hoyo-btn-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ==================== LAYER 1: FULLSCREEN SLIDER ==================== */
.hoyo-slider-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile browsers */
    overflow: hidden;
}

.hoyo-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hoyo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
}

.hoyo-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hoyo-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hoyo-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            transparent 100%);
}

.hoyo-slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 10;
}

.hoyo-slide-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(79, 195, 247, 0.2);
    border: 1px solid #4fc3f7;
    color: #4fc3f7;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hoyo-slide-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hoyo-slide-desc {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hoyo-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 45px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    transition: all 0.4s ease;
    position: relative;
    border: none;
    backdrop-filter: blur(10px);
    margin: 3px;
}

/* SVG border for progressive outline animation */
.hoyo-slide-btn .btn-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    pointer-events: none;
}

.hoyo-slide-btn .btn-border rect {
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
    stroke-dasharray: 460;
    stroke-dashoffset: 460;
    transition: stroke-dashoffset 0.6s ease;
}

.hoyo-slide-btn:hover .btn-border rect {
    stroke-dashoffset: 0;
}

/* Touch device support - show border on tap */
@media (hover: none) {
    .hoyo-slide-btn .btn-border rect {
        stroke-dashoffset: 0;
        stroke: rgba(255, 255, 255, 0.5);
    }
}

.hoyo-slide-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.hoyo-slide-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.hoyo-slide-btn:hover i {
    transform: translateX(5px);
}

/* Slider Navigation - Thumbnail Style */
.hoyo-slider-nav {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 12px;
    z-index: 100;
    align-items: flex-end;
}

.hoyo-slider-thumb {
    position: relative;
    width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.hoyo-slider-thumb:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

.hoyo-slider-thumb.active {
    opacity: 1;
}

.hoyo-slider-thumb-img {
    position: relative;
    width: 100%;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.hoyo-slider-thumb.active .hoyo-slider-thumb-img {
    border-color: rgba(255, 255, 255, 0.5);
}

.hoyo-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.hoyo-slider-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.hoyo-slider-thumb.active .hoyo-slider-thumb-overlay {
    background: transparent;
}

/* Individual Progress Bar under each thumbnail - OUTSIDE */
.hoyo-thumb-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.hoyo-thumb-progress-bar {
    height: 100%;
    background: #fff;
    width: 0%;
    border-radius: 2px;
}

.hoyo-slider-thumb.active .hoyo-thumb-progress-bar {
    animation: thumbProgress 6s linear forwards;
}

@keyframes thumbProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Slider Arrows - Hidden */
.hoyo-slider-arrows {
    display: none;
}

/* Slider Progress Bar - Hidden (using thumbnail progress instead) */
.hoyo-slider-progress {
    display: none;
}

.hoyo-slider-progress-bar {
    display: none;
}

/* Scroll Indicator */
.hoyo-scroll-indicator {
    position: absolute;
    bottom: 7px;
    left: 24%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
    animation: bounce 2s infinite;
}

.hoyo-scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.hoyo-scroll-indicator i {
    font-size: 24px;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==================== LAYER 2: NEWS SECTION (Genshin Style) ==================== */
.hoyo-news-layer {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hoyo-news-layer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hoyo-news-layer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px);
    transform: scale(1.05);
}

.hoyo-news-layer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hoyo-news-layer-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    padding: 60px 40px;
    margin: 0 auto;
}

/* Title with decorative lines */
.hoyo-news-layer-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.hoyo-news-layer-title h2 {
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.hoyo-news-title-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    position: relative;
}

.hoyo-news-title-line::before,
.hoyo-news-title-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) rotate(45deg);
}

.hoyo-news-title-line.left::before {
    left: 0;
}

.hoyo-news-title-line.left::after {
    right: -5px;
}

.hoyo-news-title-line.right::before {
    left: -5px;
}

.hoyo-news-title-line.right::after {
    right: 0;
}

/* Main Content Container */
.hoyo-news-layer-main {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

/* Left: Featured News Slider */
.hoyo-news-featured-slider {
    position: relative;
    width: 55%;
    min-height: 400px;
    overflow: hidden;
}

.hoyo-news-featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.hoyo-news-featured-slide.active {
    opacity: 1;
    visibility: visible;
}

.hoyo-news-featured-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.hoyo-news-featured-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hoyo-news-featured-slide:hover img {
    transform: scale(1.03);
}

/* Slider Dots */
.hoyo-news-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.hoyo-news-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hoyo-news-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hoyo-news-dot.active {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Right: News List Panel */
.hoyo-news-list-panel {
    width: 45%;
    display: flex;
    flex-direction: column;
    background: rgba(30, 25, 20, 0.85);
}

/* Tab Header */
.hoyo-news-list-tab {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hoyo-news-tab-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-transform: capitalize;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3d4d4;
}

/* News Items List */
.hoyo-news-list-items {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hoyo-news-layer .hoyo-news-list-panel .hoyo-news-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hoyo-news-layer .hoyo-news-list-panel .hoyo-news-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
}

.hoyo-news-layer .hoyo-news-item-title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    padding-right: 20px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.hoyo-news-layer .hoyo-news-list-item:hover .hoyo-news-item-title {
    color: #d4a574;
}

.hoyo-news-layer .hoyo-news-item-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.hoyo-news-list-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

/* More Button */
.hoyo-news-list-more {
    padding: 20px 30px;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hoyo-news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hoyo-news-more-btn:hover {
    color: #d4a574;
}

.hoyo-news-more-btn i {
    font-size: 12px;
}

/* Responsive Styles for News Layer */
@media (max-width: 992px) {
    .hoyo-news-layer-main {
        flex-direction: column;
    }

    .hoyo-news-featured-slider {
        width: 100%;
        min-height: 300px;
    }

    .hoyo-news-list-panel {
        width: 100%;
    }

    .hoyo-news-layer-title h2 {
        font-size: 36px;
        letter-spacing: 10px;
    }

    .hoyo-news-title-line {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .hoyo-news-layer-content {
        padding: 40px 20px;
    }

    .hoyo-news-layer-title h2 {
        font-size: 28px;
        letter-spacing: 5px;
    }

    .hoyo-news-title-line {
        width: 40px;
    }

    .hoyo-news-list-item {
        padding: 15px 20px;
    }

    .hoyo-news-item-title {
        font-size: 13px;
    }
}

/* ==================== OLD LAYER 2: LATEST UPDATES (Keep for backward compatibility) ==================== */
.hoyo-news-section {
    position: relative;
    padding: 100px 60px;
    background: linear-gradient(180deg, #e8f4fc 0%, #d4eaf7 50%, #c0e0f4 100%);
    min-height: 100vh;
    overflow: hidden;
}

/* Cloud decoration elements */
.hoyo-news-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -10%;
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatCloud 20s ease-in-out infinite;
}

.hoyo-news-section::after {
    content: '';
    position: absolute;
    top: 50px;
    right: -5%;
    width: 350px;
    height: 180px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatCloud 25s ease-in-out infinite reverse;
}

@keyframes floatCloud {

    0%,
    100% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(30px) translateY(-20px);
    }
}

/* Additional cloud decorations */
.hoyo-cloud {
    position: absolute;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hoyo-cloud-1 {
    width: 300px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation: floatCloud 18s ease-in-out infinite;
}

.hoyo-cloud-2 {
    width: 250px;
    height: 120px;
    bottom: 40%;
    right: 10%;
    animation: floatCloud 22s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.hoyo-cloud-3 {
    width: 200px;
    height: 100px;
    top: 30%;
    left: 30%;
    animation: floatCloud 15s ease-in-out infinite;
    animation-delay: -10s;
}

.hoyo-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.hoyo-section-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    color: #1a4a6e;
}

.hoyo-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #87ceeb);
    border-radius: 2px;
}

.hoyo-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1a4a6e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.hoyo-more-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.hoyo-more-btn i {
    transition: transform 0.3s ease;
}

.hoyo-more-btn:hover i {
    transform: translateX(5px);
}

/* News Grid */
.hoyo-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hoyo-news-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(26, 74, 110, 0.1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.hoyo-news-card:hover {
    transform: translateY(-10px);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 25px 60px rgba(26, 74, 110, 0.2);
}

.hoyo-news-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.hoyo-news-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hoyo-news-card:first-child .hoyo-news-card-image {
    height: 350px;
}

.hoyo-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hoyo-news-card:hover .hoyo-news-card-image img {
    transform: scale(1.1);
}

.hoyo-news-card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.hoyo-news-card-badge.event {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.hoyo-news-card-badge.update {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.hoyo-news-card-badge.announcement {
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.hoyo-news-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hoyo-news-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 12px 0;
    color: #1a4a6e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hoyo-news-card:first-child .hoyo-news-card-title {
    font-size: 24px;
    -webkit-line-clamp: 3;
}

.hoyo-news-card-date {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.hoyo-news-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hoyo-card-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d4eaf7 100%);
    color: #1a4a6e;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.hoyo-card-more-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.hoyo-card-more-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.hoyo-card-more-btn:hover i {
    transform: translateX(3px);
}

.hoyo-news-card:first-child .hoyo-card-more-btn {
    padding: 12px 25px;
    font-size: 13px;
}

/* ==================== LAYER 3: FOOTER ==================== */
.hoyo-footer {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
    padding: 40px 40px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hoyo-footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.hoyo-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 28px;
}

.hoyo-footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px 0;
    letter-spacing: 2px;
    color: #1a1a2e;
}

.hoyo-footer-brand h3 span {
    color: #4a90c2;
}

.hoyo-footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(26, 26, 46, 0.7);
    margin: 0 0 16px 0;
}

.hoyo-footer-social {
    display: flex;
    gap: 15px;
}

.hoyo-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hoyo-footer-social a:hover {
    background: #4a90c2;
    border-color: #4a90c2;
    color: #fff;
    transform: translateY(-3px);
}

.hoyo-footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 14px 0;
    color: rgba(26, 26, 46, 0.9);
}

.hoyo-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hoyo-footer-column li {
    margin-bottom: 8px;
}

.hoyo-footer-column a {
    color: rgba(26, 26, 46, 0.65);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.hoyo-footer-column a:hover {
    color: #4a90c2;
}

.hoyo-footer-bottom {
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hoyo-footer-copyright {
    font-size: 13px;
    color: rgba(26, 26, 46, 0.55);
}

.hoyo-footer-links {
    display: flex;
    gap: 30px;
}

.hoyo-footer-links a {
    font-size: 13px;
    color: rgba(26, 26, 46, 0.55);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hoyo-footer-links a:hover {
    color: #4a90c2;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1200px) {
    .hoyo-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hoyo-footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hoyo-nav {
        padding: 15px 30px;
    }

    .hoyo-nav-menu {
        display: none;
    }

    .hoyo-nav-toggle {
        display: flex;
    }

    .hoyo-slide-title {
        font-size: 40px;
    }

    .hoyo-slide-content {
        left: 5%;
        max-width: 90%;
    }

    .hoyo-news-section {
        padding: 60px 30px;
    }

    .hoyo-section-title {
        font-size: 32px;
    }

    .hoyo-footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hoyo-slide-title {
        font-size: 24px;
    }

    .hoyo-slide-desc {
        font-size: 13px;
        display: block;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }

    .hoyo-slide-tag {
        font-size: 10px;
        padding: 5px 12px;
    }

    .hoyo-slide-btn {
        padding: 12px 25px;
        font-size: 11px;
    }

    .hoyo-slide-content {
        bottom: 120px;
        left: 20px;
        max-width: calc(100% - 40px);
    }

    /* Slider Navigation - mobile friendly */
    .hoyo-slider-nav {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        gap: 8px;
    }

    .hoyo-slider-thumb {
        width: 50px;
    }

    .hoyo-slider-thumb-img {
        height: 32px;
        border-radius: 4px;
    }

    .hoyo-thumb-progress {
        height: 2px;
        margin-top: 4px;
    }

    .hoyo-news-grid {
        grid-template-columns: 1fr;
    }

    .hoyo-news-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hoyo-news-card:first-child .hoyo-news-card-image {
        height: 200px;
    }

    .hoyo-news-card:first-child .hoyo-news-card-title {
        font-size: 18px;
    }

    .hoyo-footer {
        background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 28px 16px 16px;
    }

    .hoyo-footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hoyo-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hoyo-slider-arrows {
        display: none;
    }

    .hoyo-scroll-indicator {
        display: none;
    }

    .hoyo-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hoyo-news-section {
        padding: 50px 20px;
    }

    .hoyo-section-title {
        font-size: 24px;
    }

    .hoyo-more-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* News cards mobile */
    .hoyo-news-card-title {
        font-size: 14px;
    }

    .hoyo-news-card-content {
        padding: 15px;
    }

    .hoyo-card-more-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hoyo-nav {
        padding: 12px 15px;
    }

    .hoyo-nav-logo {
        font-size: 16px;
    }

    .hoyo-nav-auth {
        display: none;
    }

    .hoyo-slide-title {
        font-size: 20px;
    }

    .hoyo-slide-desc {
        display: none;
    }

    .hoyo-slide-content {
        bottom: 100px;
        left: 15px;
        max-width: calc(100% - 30px);
    }

    .hoyo-slide-btn {
        padding: 10px 20px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hoyo-slider-thumb {
        width: 40px;
    }

    .hoyo-slider-thumb-img {
        height: 25px;
    }

    .hoyo-news-section {
        padding: 40px 15px;
    }

    .hoyo-section-title {
        font-size: 20px;
    }

    .hoyo-footer {
        background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 24px 14px 14px;
    }

    .hoyo-footer-brand h3 {
        font-size: 20px;
    }

    .hoyo-footer-column h4 {
        font-size: 14px;
    }

    .hoyo-footer-column a {
        font-size: 13px;
    }

    .hoyo-footer-social a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Mobile Navigation Toggle */
.hoyo-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hoyo-nav-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.hoyo-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.hoyo-nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

/* Mobile Menu Toggle Button */
.hoyo-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above menu */
    padding: 0;
}

.hoyo-nav-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hoyo-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px) !important;
}

.hoyo-nav-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.hoyo-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px) !important;
}

/* Mobile Sidebar Menu (Right Drawer) */
.hoyo-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 280px;
    /* Sidebar width */
    height: 100vh;
    background: #0a0a0a;
    /* Dark background matching header */
    z-index: 1000;
    padding: 80px 0 20px;
    /* Space for top header */
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.hoyo-mobile-menu.active {
    right: 0;
    /* Slide in */
}

/* Menu List Styling */
.hoyo-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.hoyo-mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.hoyo-mobile-menu-list li {
    display: block;
    margin: 0;
}

.hoyo-mobile-menu-list a {
    display: block;
    padding: 15px 30px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.hoyo-mobile-menu-list a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 35px;
    /* Slight movement on hover */
}

/* Add Overlay when menu is open */
.hoyo-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hoyo-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hoyo-mobile-auth {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hoyo-mobile-btn {
    margin-top: auto;
    padding: 14px 20px;
    text-align: center;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hoyo-mobile-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hoyo-mobile-btn.primary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    border-color: #4fc3f7;
}

.hoyo-mobile-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(79, 195, 247, 0.3);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hoyo-animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.hoyo-animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

/* Stagger animation delays */
.hoyo-news-card:nth-child(1) {
    animation-delay: 0.1s;
}

.hoyo-news-card:nth-child(2) {
    animation-delay: 0.2s;
}

.hoyo-news-card:nth-child(3) {
    animation-delay: 0.3s;
}

.hoyo-news-card:nth-child(4) {
    animation-delay: 0.4s;
}

.hoyo-news-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* ==================== UTILITIES ==================== */
.hoyo-hidden {
    display: none !important;
}

.hoyo-visible {
    display: block !important;
}

/* ==================== NEWS PAGES STYLES ==================== */

/* News Hero Banner */
.hoyo-news-hero {
    position: relative;
    height: 45vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hoyo-news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/slider/layer5.jpg') center center / cover no-repeat;
}

/* Remove gradient animation - using static background image now */

.hoyo-news-hero-update .hoyo-news-hero-bg {
    background: url('../images/slider/layer5.jpg') center center / cover no-repeat;
}

.hoyo-news-hero-event .hoyo-news-hero-bg {
    background: url('../images/slider/layer5.jpg') center center / cover no-repeat;
}

.hoyo-news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hoyo-news-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
}

.hoyo-news-hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

.hoyo-news-hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 25px 0;
}

/* Breadcrumb */
.hoyo-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
}

.hoyo-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hoyo-breadcrumb a:hover {
    color: #fff;
}

.hoyo-breadcrumb i {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.hoyo-breadcrumb span {
    color: #4fc3f7;
}

/* News Content Section */
.hoyo-news-content-section {
    background: linear-gradient(180deg, #f5f9fc 0%, #e8f4fc 100%);
    padding: 50px 60px 80px;
    min-height: 60vh;
}

/* News Tabs */
.hoyo-news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hoyo-news-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: #fff;
    color: #1a4a6e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hoyo-news-tab:hover {
    border-color: #4fc3f7;
    transform: translateY(-2px);
}

.hoyo-news-tab.active {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #fff;
    box-shadow: 0 5px 20px rgba(79, 195, 247, 0.3);
}

.hoyo-news-tab i {
    font-size: 16px;
}

/* Highlighted News */
.hoyo-news-highlights {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(231, 76, 60, 0.05) 100%);
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 40px;
}

.hoyo-news-highlights-update {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border-color: rgba(39, 174, 96, 0.2);
}

.hoyo-news-highlights-event {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-color: rgba(243, 156, 18, 0.2);
}

.hoyo-news-highlights-title {
    font-size: 16px;
    font-weight: 600;
    color: #e74c3c;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hoyo-news-highlights-update .hoyo-news-highlights-title {
    color: #27ae60;
}

.hoyo-news-highlights-event .hoyo-news-highlights-title {
    color: #e67e22;
}

.hoyo-news-highlight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hoyo-news-highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hoyo-news-highlight-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hoyo-news-highlight-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    flex-shrink: 0;
}

.hoyo-news-highlight-badge.update {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.hoyo-news-highlight-badge.event {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.hoyo-news-highlight-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a4a6e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hoyo-news-highlight-date {
    font-size: 13px;
    color: #7f8c8d;
    white-space: nowrap;
}

.hoyo-news-highlight-views {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* News List */
.hoyo-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hoyo-news-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}

.hoyo-news-list-item:hover {
    border-color: #4fc3f7;
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(79, 195, 247, 0.15);
}

.hoyo-news-list-id {
    font-size: 14px;
    font-weight: 600;
    color: #4fc3f7;
    min-width: 60px;
}

.hoyo-news-list-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #1a4a6e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hoyo-news-list-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hoyo-news-list-date,
.hoyo-news-list-views {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.hoyo-news-list-date i,
.hoyo-news-list-views i {
    font-size: 12px;
    color: #bdc3c7;
}

/* Empty State */
.hoyo-news-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.hoyo-news-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.hoyo-news-empty p {
    font-size: 16px;
}

/* Pagination */
.hoyo-news-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.hoyo-news-pagination .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hoyo-news-pagination .pagination li a,
.hoyo-news-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #1a4a6e;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e8f4fc;
}

.hoyo-news-pagination .pagination li a:hover {
    background: #4fc3f7;
    color: #fff;
    border-color: #4fc3f7;
}

.hoyo-news-pagination .pagination li.active span {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #fff;
    border-color: #4fc3f7;
}

/* News View Page */
.hoyo-news-view-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    background: #1a4a6e;
    overflow: hidden;
}

.hoyo-news-view-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hoyo-news-view-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hoyo-news-view-hero-content {
    position: absolute;
    bottom: 30px;
    left: 60px;
    z-index: 10;
}

.hoyo-news-view-hero-content .hoyo-breadcrumb {
    justify-content: flex-start;
}

/* News Article */
.hoyo-news-article-section {
    background: linear-gradient(180deg, #f5f9fc 0%, #e8f4fc 100%);
    padding: 0 60px 80px;
}

.hoyo-news-article {
    max-width: 900px;
    margin: -60px auto 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 20;
}

.hoyo-news-article-header {
    padding: 40px 50px;
    border-bottom: 1px solid #e8f4fc;
}

.hoyo-news-article-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hoyo-news-article-badge.update {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.hoyo-news-article-badge.event {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.hoyo-news-article-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a4a6e;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

.hoyo-news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 14px;
    color: #7f8c8d;
}

.hoyo-news-article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hoyo-news-article-meta i {
    color: #4fc3f7;
}

.hoyo-news-article-content {
    padding: 40px 50px;
    font-size: 16px;
    line-height: 1.8;
    color: #34495e;
}

.hoyo-news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.hoyo-news-article-content p {
    margin: 0 0 20px 0;
}

.hoyo-news-article-content h2,
.hoyo-news-article-content h3 {
    color: #1a4a6e;
    margin: 30px 0 15px 0;
}

.hoyo-news-article-footer {
    padding: 30px 50px;
    background: #f5f9fc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.hoyo-news-article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hoyo-news-article-share span {
    font-size: 14px;
    color: #7f8c8d;
}

.hoyo-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #1a4a6e;
    border: 1px solid #e8f4fc;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hoyo-share-btn:hover {
    transform: translateY(-3px);
}

.hoyo-share-btn.facebook:hover {
    background: #3b5998;
    color: #fff;
    border-color: #3b5998;
}

.hoyo-share-btn.twitter:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.hoyo-share-btn.copy:hover {
    background: #4fc3f7;
    color: #fff;
    border-color: #4fc3f7;
}

.hoyo-btn-back-list {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #fff;
    color: #1a4a6e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid #e8f4fc;
    transition: all 0.3s ease;
}

.hoyo-btn-back-list:hover {
    background: #4fc3f7;
    color: #fff;
    border-color: #4fc3f7;
}

/* Subpage Footer */
.hoyo-subpage-footer {
    padding: 30px 60px;
}

.hoyo-subpage-footer .hoyo-footer-bottom {
    padding-top: 0;
    border-top: none;
}

/* News Error State */
.hoyo-news-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.hoyo-news-error i {
    font-size: 80px;
    color: #e74c3c;
    margin-bottom: 30px;
}

.hoyo-news-error h2 {
    font-size: 32px;
    margin: 0 0 20px 0;
}

.hoyo-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.hoyo-btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.3);
}

/* News Pages Responsive */
@media (max-width: 992px) {
    .hoyo-news-hero-content h1 {
        font-size: 42px;
    }

    .hoyo-news-content-section {
        padding: 40px 30px 60px;
    }

    .hoyo-news-view-hero-content {
        left: 30px;
    }

    .hoyo-news-article-section {
        padding: 0 30px 60px;
    }

    .hoyo-news-article-header,
    .hoyo-news-article-content,
    .hoyo-news-article-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .hoyo-news-hero {
        height: 35vh;
        min-height: 280px;
    }

    .hoyo-news-hero-content h1 {
        font-size: 32px;
    }

    .hoyo-news-hero-content p {
        font-size: 14px;
    }

    .hoyo-breadcrumb {
        font-size: 12px;
        gap: 8px;
    }

    .hoyo-news-tabs {
        gap: 8px;
    }

    .hoyo-news-tab {
        padding: 12px 20px;
        font-size: 13px;
    }

    .hoyo-news-highlight-item {
        flex-wrap: wrap;
    }

    .hoyo-news-highlight-title {
        flex-basis: 100%;
        order: 1;
        margin-top: 5px;
        white-space: normal;
    }

    .hoyo-news-highlight-date,
    .hoyo-news-highlight-views {
        font-size: 12px;
    }

    .hoyo-news-list-item {
        flex-wrap: wrap;
        padding: 15px 20px;
    }

    .hoyo-news-list-id {
        min-width: auto;
    }

    .hoyo-news-list-title {
        flex-basis: 100%;
        order: 2;
        margin-top: 8px;
        white-space: normal;
    }

    .hoyo-news-list-meta {
        order: 3;
        width: 100%;
        margin-top: 10px;
        gap: 15px;
    }

    .hoyo-news-view-hero {
        height: 30vh;
        min-height: 200px;
    }

    .hoyo-news-view-hero-content {
        left: 20px;
        bottom: 20px;
    }

    .hoyo-news-article-section {
        padding: 0 20px 40px;
    }

    .hoyo-news-article {
        margin-top: -40px;
        border-radius: 15px;
    }

    .hoyo-news-article-header,
    .hoyo-news-article-content,
    .hoyo-news-article-footer {
        padding: 25px 20px;
    }

    .hoyo-news-article-title {
        font-size: 24px;
    }

    .hoyo-news-article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .hoyo-news-article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hoyo-subpage-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hoyo-news-content-section {
        padding: 30px 15px 50px;
    }

    .hoyo-news-tab {
        padding: 10px 15px;
        font-size: 12px;
    }

    .hoyo-news-tab i {
        display: none;
    }

    .hoyo-news-highlights {
        padding: 15px;
    }

    .hoyo-news-highlight-item {
        padding: 12px 15px;
    }

    .hoyo-news-list-item {
        padding: 12px 15px;
    }

    .hoyo-news-article-title {
        font-size: 20px;
    }

    .hoyo-news-article-content {
        font-size: 15px;
    }
}

/* ==================== HOYOVERSE NEWS PAGE V2 ==================== */

/* Light page variant */
.hoyo-page-dark {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
}

/* News Page Layout */
.hoyo-news-page {
    padding-top: 100px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 80px;
}

/* Page Header */
.hoyo-news-page-header {
    margin-bottom: 40px;
}

.hoyo-news-page-header h1 {
    font-size: 48px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* Filter Tabs - HoYoverse Style */
.hoyo-news-filter {
    display: flex;
    gap: 0;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hoyo-news-filter-btn {
    padding: 16px 32px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.hoyo-news-filter-btn:hover {
    color: rgba(0, 0, 0, 0.7);
}

.hoyo-news-filter-btn.active {
    color: #1a1a2e;
}

.hoyo-news-filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a90c2;
}

/* News Cards Grid */
.hoyo-news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* News Card V2 - Cloud Style */
.hoyo-news-card-v2 {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hoyo-news-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hoyo-news-card-v2-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
}

.hoyo-news-card-v2-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hoyo-news-card-v2:hover .hoyo-news-card-v2-image img {
    transform: scale(1.08);
}

.hoyo-news-card-v2-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    text-transform: capitalize;
}

.hoyo-news-card-v2-badge.notice {
    background: rgba(231, 76, 60, 0.9);
}

.hoyo-news-card-v2-badge.update {
    background: rgba(39, 174, 96, 0.9);
}

.hoyo-news-card-v2-badge.event {
    background: rgba(243, 156, 18, 0.9);
}

.hoyo-news-card-v2-content {
    padding: 20px 25px 25px;
}

.hoyo-news-card-v2-date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.hoyo-news-card-v2-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.hoyo-news-card-v2:hover .hoyo-news-card-v2-title {
    color: #4a90c2;
}

/* Empty State V2 */
.hoyo-news-empty-v2 {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: #888;
}

.hoyo-news-empty-v2 i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.hoyo-news-empty-v2 p {
    font-size: 18px;
    margin: 0;
}

/* Pagination V2 */
.hoyo-news-pagination-v2 {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.hoyo-news-pagination-v2 .pagination {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.hoyo-news-pagination-v2 .pagination li a,
.hoyo-news-pagination-v2 .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 15px;
    background: #fff;
    color: #555;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hoyo-news-pagination-v2 .pagination li a:hover {
    background: #f5f5f5;
    color: #1a1a2e;
    border-color: #ccc;
}

.hoyo-news-pagination-v2 .pagination li.active span {
    background: #4a90c2;
    color: #fff;
    border-color: #4a90c2;
}

/* Load More Button */
.hoyo-news-load-more {
    margin-top: 50px;
    text-align: center;
}

.hoyo-news-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 50px;
    background: #fff;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.hoyo-news-more-btn:hover {
    background: #4a90c2;
    color: #fff;
    border-color: #4a90c2;
}

.hoyo-news-more-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.hoyo-news-more-btn:hover i {
    transform: translateY(3px);
}

/* Footer V2 - Cloud Style */
.hoyo-footer-v2 {
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
}

.hoyo-footer-v2-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.hoyo-footer-v2-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.hoyo-footer-v2-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.hoyo-footer-v2-links a:hover {
    color: #4a90c2;
}

.hoyo-footer-v2-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.hoyo-footer-v2-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hoyo-footer-v2-social a:hover {
    color: #4a90c2;
    border-color: #4a90c2;
    transform: translateY(-3px);
}

.hoyo-footer-v2-copyright {
    color: #999;
    font-size: 13px;
    margin: 0;
}

/* ==================== ARTICLE PAGE V2 ==================== */

.hoyo-article-page {
    padding-top: 180px;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 80px;
}

.hoyo-article-back {
    margin-bottom: 30px;
}

.hoyo-article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.hoyo-article-back-btn:hover {
    color: #4a90c2;
}

.hoyo-article-back-btn i {
    font-size: 12px;
}

.hoyo-article-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.hoyo-article-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #f8f9fa;
    /* Light background for smaller images */
    overflow: hidden;
    padding: 20px 0;
}

.hoyo-article-banner img {
    max-width: 100%;
    max-height: 705px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hoyo-article-header {
    padding: 40px 50px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hoyo-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.hoyo-article-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    text-transform: capitalize;
}

.hoyo-article-badge.notice {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.hoyo-article-badge.update {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.hoyo-article-badge.event {
    background: rgba(243, 156, 18, 0.1);
    color: #e67e22;
}

.hoyo-article-date {
    color: #888;
    font-size: 14px;
}

.hoyo-article-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin: 0;
}

.hoyo-article-body {
    padding: 40px 50px;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.hoyo-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.hoyo-article-body p {
    margin: 0 0 20px 0;
}

.hoyo-article-body h2,
.hoyo-article-body h3 {
    color: #1a1a2e;
    margin: 30px 0 15px 0;
}

.hoyo-article-body a {
    color: #4a90c2;
}

.hoyo-article-body ul,
.hoyo-article-body ol {
    margin: 0 0 20px 20px;
}

.hoyo-article-footer {
    padding: 30px 50px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hoyo-article-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hoyo-article-share>span {
    color: #888;
    font-size: 14px;
}

.hoyo-share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hoyo-share-icon:hover {
    background: #4a90c2;
    color: #fff;
    border-color: #4a90c2;
}

/* Error State V2 */
.hoyo-news-error-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.hoyo-news-error-v2 i {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 30px;
}

.hoyo-news-error-v2 h2 {
    font-size: 28px;
    color: #1a1a2e;
    margin: 0 0 30px 0;
}

.hoyo-btn-back-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 40px;
    background: #4a90c2;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hoyo-btn-back-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(74, 144, 194, 0.3);
}

/* News Page V2 Responsive */
@media (max-width: 1200px) {
    .hoyo-news-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hoyo-news-page {
        padding-left: 30px;
        padding-right: 30px;
    }

    .hoyo-news-page-header h1 {
        font-size: 36px;
    }

    .hoyo-news-filter-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hoyo-news-page {
        padding-top: 80px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hoyo-news-page-header h1 {
        font-size: 28px;
    }

    .hoyo-news-filter {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hoyo-news-filter-btn {
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    .hoyo-news-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hoyo-news-card-v2-title {
        font-size: 16px;
    }

    .hoyo-article-page {
        padding-top: 80px;
    }

    .hoyo-article-header {
        padding: 30px 25px;
    }

    .hoyo-article-title {
        font-size: 24px;
    }

    .hoyo-article-body {
        padding: 30px 25px;
        font-size: 15px;
    }

    .hoyo-article-footer {
        padding: 25px;
        flex-direction: column;
        gap: 20px;
    }

    .hoyo-footer-v2 {
        padding: 40px 20px;
    }

    .hoyo-footer-v2-links {
        gap: 15px 25px;
    }
}

@media (max-width: 480px) {
    .hoyo-news-page-header {
        margin-bottom: 30px;
    }

    .hoyo-news-page-header h1 {
        font-size: 24px;
    }

    .hoyo-news-filter {
        margin-bottom: 30px;
    }

    .hoyo-news-card-v2-image {
        margin-bottom: 15px;
    }

    .hoyo-news-card-v2-date {
        font-size: 12px;
    }

    .hoyo-news-card-v2-title {
        font-size: 15px;
    }

    .hoyo-article-header {
        padding: 25px 20px;
    }

    .hoyo-article-title {
        font-size: 20px;
    }

    .hoyo-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hoyo-article-body {
        padding: 25px 20px;
    }
}

/* ==================== SUBPAGE HERO STYLES ==================== */

/* Subpage Hero Banner */
.hoyo-subpage-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoyo-subpage-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hoyo-subpage-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(240, 244, 248, 1) 100%);
}

.hoyo-subpage-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
    padding-top: 60px;
}

.hoyo-subpage-hero-tag {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hoyo-subpage-hero-title {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hoyo-subpage-hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Subpage Main Content */
.hoyo-subpage-content {
    background: linear-gradient(180deg, #f0f4f8 0%, #e8eef5 100%);
    min-height: 60vh;
    padding: 60px 40px 80px;
}

.hoyo-subpage-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Title Styling */
.hoyo-section-title-v2 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 30px 0;
    position: relative;
    padding-bottom: 15px;
}

.hoyo-section-title-v2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4a90c2, #67b8e3);
    border-radius: 2px;
}

/* Download Cards */
.hoyo-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hoyo-download-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.hoyo-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hoyo-download-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoyo-download-card-icon i {
    font-size: 36px;
    color: #fff;
}

.hoyo-download-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.hoyo-download-card-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.hoyo-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.hoyo-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 194, 0.4);
}

.hoyo-download-btn i {
    font-size: 14px;
}

/* ===== Improved Download Page Styles ===== */
.hoyo-download-section {
    margin-bottom: 50px;
}

.hoyo-download-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hoyo-download-section-title i {
    color: #4a90c2;
    font-size: 20px;
}

.hoyo-download-section-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.hoyo-download-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Redesigned Download Card */
.hoyo-download-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    border: 2px solid transparent;
}

.hoyo-download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hoyo-download-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.hoyo-download-card-icon {
    width: 55px;
    height: 55px;
    margin: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hoyo-download-card-icon.gdrive {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
}

.hoyo-download-card-icon.mediafire {
    background: linear-gradient(135deg, #1c79c0 0%, #4a9eda 100%);
}

.hoyo-download-card-icon.patch {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.hoyo-download-card-icon.vcredist {
    background: linear-gradient(135deg, #00bcf2 0%, #0078d4 100%);
}

.hoyo-download-card-icon i {
    font-size: 24px;
    color: #fff;
}

.hoyo-download-card-info {
    flex: 1;
}

.hoyo-download-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.hoyo-download-card-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.hoyo-download-card-badge.alt {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
}

.hoyo-download-card-badge.patch {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.hoyo-download-card-badge.vcredist {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.hoyo-download-card-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.hoyo-download-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hoyo-download-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    padding: 5px 0;
}

.hoyo-download-features li i {
    color: #27ae60;
    font-size: 12px;
}

/* Download Button Variants */
.hoyo-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hoyo-download-btn.gdrive {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: #fff;
}

.hoyo-download-btn.gdrive:hover {
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

.hoyo-download-btn.mediafire {
    background: linear-gradient(135deg, #1c79c0 0%, #4a9eda 100%);
    color: #fff;
}

.hoyo-download-btn.mediafire:hover {
    box-shadow: 0 8px 25px rgba(28, 121, 192, 0.4);
}

.hoyo-download-btn.patch {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: #fff;
}

.hoyo-download-btn.patch:hover {
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

.hoyo-download-btn.vcredist {
    background: linear-gradient(135deg, #00bcf2 0%, #0078d4 100%);
    color: #fff;
}

.hoyo-download-btn.vcredist:hover {
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
}

.hoyo-download-btn.disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* Google Drive Card Hover */
.hoyo-download-gdrive:hover {
    border-color: rgba(66, 133, 244, 0.3);
}

/* Mediafire Card Hover */
.hoyo-download-mediafire:hover {
    border-color: rgba(28, 121, 192, 0.3);
}

/* Patch Card Hover */
.hoyo-download-patch:hover {
    border-color: rgba(230, 126, 34, 0.3);
}

/* VCRedist Card Hover */
.hoyo-download-vcredist:hover {
    border-color: rgba(0, 120, 212, 0.3);
}

/* Installation Steps */
.hoyo-install-steps {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hoyo-install-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.hoyo-install-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hoyo-install-step:first-child {
    padding-top: 0;
}

.hoyo-install-step-num {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.hoyo-install-step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.hoyo-install-step-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hoyo-download-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* System Requirements */
.hoyo-system-req {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hoyo-system-table {
    width: 100%;
    border-collapse: collapse;
}

.hoyo-system-table th,
.hoyo-system-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hoyo-system-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

.hoyo-system-table td {
    color: #555;
    font-size: 14px;
}

.hoyo-system-table tbody tr:hover {
    background: #f8f9fa;
}

.hoyo-system-table .req-label {
    font-weight: 500;
    color: #1a1a2e;
    width: 150px;
}

/* Ranking Page Styles */
.hoyo-ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hoyo-ranking-tab {
    padding: 12px 28px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.hoyo-ranking-tab:hover {
    border-color: #4a90c2;
    color: #4a90c2;
}

.hoyo-ranking-tab.active {
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    border-color: transparent;
}

.hoyo-ranking-table-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hoyo-ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.hoyo-ranking-table th,
.hoyo-ranking-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.hoyo-ranking-table th {
    background: #4a90c2;
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.hoyo-ranking-table td {
    color: #444;
    font-size: 14px;
}

.hoyo-ranking-table tbody tr:hover {
    background: #f5f8ff;
}

.hoyo-ranking-rank {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 16px;
}

.hoyo-ranking-rank.top-1 {
    color: #f1c40f;
}

.hoyo-ranking-rank.top-2 {
    color: #95a5a6;
}

.hoyo-ranking-rank.top-3 {
    color: #cd6133;
}

.hoyo-ranking-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hoyo-ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.hoyo-ranking-name {
    font-weight: 600;
    color: #1a1a2e;
}

/* Support Page */
.hoyo-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hoyo-support-card {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.hoyo-support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.hoyo-support-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoyo-support-card-icon i {
    font-size: 28px;
    color: #fff;
}

.hoyo-support-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px 0;
}

.hoyo-support-card-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.hoyo-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4a90c2;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.hoyo-support-link:hover {
    gap: 12px;
}

/* Ticket Form */
.hoyo-ticket-form {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hoyo-form-group {
    margin-bottom: 25px;
}

.hoyo-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.hoyo-form-input,
.hoyo-form-select,
.hoyo-form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.hoyo-form-input:focus,
.hoyo-form-select:focus,
.hoyo-form-textarea:focus {
    outline: none;
    border-color: #4a90c2;
    background: #fff;
}

.hoyo-form-textarea {
    min-height: 150px;
    resize: vertical;
}

.hoyo-form-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hoyo-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 194, 0.4);
}

/* ItemShop Page */
.hoyo-shop-categories {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hoyo-shop-cat-btn {
    padding: 12px 28px;
    background: #fff;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.hoyo-shop-cat-btn:hover {
    border-color: #4a90c2;
    color: #4a90c2;
}

.hoyo-shop-cat-btn.active {
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    border-color: transparent;
}

.hoyo-shop-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.hoyo-shop-cat-btn {
    padding: 11px 26px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 28px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hoyo-shop-cat-btn:hover {
    border-color: #4a90c2;
    color: #4a90c2;
}

.hoyo-shop-cat-btn.active {
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    border-color: transparent;
}

.hoyo-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.hoyo-shop-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hoyo-shop-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.hoyo-shop-item-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f4f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.hoyo-shop-item-image img {
    width: 45%;
    height: 45%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hoyo-shop-item:hover .hoyo-shop-item-image img {
    transform: scale(1.15);
}

/* Info Button on Item Image */
.hoyo-shop-info-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoyo-shop-item:hover .hoyo-shop-info-btn {
    opacity: 1;
}

.hoyo-shop-info-btn:hover {
    background: rgba(255, 215, 0, 0.9);
    color: #222;
}

.hoyo-shop-item-info {
    padding: 14px 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hoyo-shop-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hoyo-shop-item-price {
    font-size: 15px;
    font-weight: 700;
    color: #4a90c2;
    margin: 0 0 10px 0;
}

.hoyo-shop-item-price span {
    font-size: 11px;
    font-weight: 400;
    color: #999;
}

.hoyo-shop-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.hoyo-shop-buy-btn:hover {
    box-shadow: 0 4px 15px rgba(74, 144, 194, 0.35);
}

/* Standalone Login to Buy button - ensure consistent full width */
.hoyo-shop-buy-btn.hoyo-shop-login-to-buy {
    width: 100% !important;
    flex: none;
    align-self: stretch;
}

/* Button group for Buy and Cart */
.hoyo-shop-btn-group {
    display: flex;
    gap: 8px;
    margin-top: auto;
    width: 100%;
}

.hoyo-shop-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    padding: 10px;
    background: linear-gradient(135deg, #ff9a3c 0%, #ffb366 100%);
    color: #fff;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hoyo-shop-cart-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 154, 60, 0.35);
    transform: translateY(-1px);
}

.hoyo-shop-cart-btn:active {
    transform: translateY(0);
}

/* ==================== CART MODAL ==================== */
.hoyo-cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hoyo-cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.hoyo-cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.hoyo-cart-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
}

.hoyo-cart-modal.active .hoyo-cart-modal-content {
    transform: translateX(0);
}

.hoyo-cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hoyo-cart-modal-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hoyo-cart-modal-header h3 i {
    color: #ff9a3c;
}

.hoyo-cart-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoyo-cart-modal-close:hover {
    background: rgba(255, 68, 68, 0.3);
    color: #ff4444;
}

.hoyo-cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.hoyo-cart-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #888;
}

.hoyo-cart-loading p {
    margin-top: 15px;
    font-size: 14px;
}

.hoyo-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    text-align: center;
}

.hoyo-cart-empty i {
    font-size: 48px;
    color: #444;
    margin-bottom: 15px;
}

.hoyo-cart-empty p {
    font-size: 16px;
    margin-bottom: 15px;
}

.hoyo-cart-shop-link {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: 500;
}

.hoyo-cart-shop-link:hover {
    text-decoration: underline;
}

.hoyo-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hoyo-cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.hoyo-cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.hoyo-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.hoyo-cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hoyo-cart-item-info {
    min-width: 0;
}

.hoyo-cart-item-info h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hoyo-cart-item-price {
    font-size: 13px;
    color: #4fc3f7;
    margin: 0;
}

.hoyo-cart-price-original {
    text-decoration: line-through;
    color: #666;
    font-size: 11px;
}

.hoyo-cart-currency {
    font-size: 10px;
    color: #888;
}

.hoyo-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hoyo-cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.hoyo-cart-qty-btn:hover {
    background: rgba(79, 195, 247, 0.2);
    border-color: #4fc3f7;
}

.hoyo-cart-qty-value {
    color: #fff;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.hoyo-cart-item-total {
    color: #4fc3f7;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.hoyo-cart-item-remove {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.hoyo-cart-item-remove:hover {
    color: #ff4444;
}

.hoyo-cart-modal-footer {
    padding: 20px 25px;
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hoyo-cart-summary {
    margin-bottom: 20px;
}

.hoyo-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #aaa;
    font-size: 14px;
}

.hoyo-cart-summary-row.hoyo-cart-total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    margin-top: 10px;
    color: #fff;
    font-size: 18px;
}

.hoyo-cart-summary-row strong {
    color: #fff;
}

.hoyo-cart-actions {
    display: flex;
    gap: 12px;
}

.hoyo-cart-btn-secondary {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hoyo-cart-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hoyo-cart-btn-primary {
    flex: 1;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff9a3c 0%, #ffb366 100%);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hoyo-cart-btn-primary:hover {
    box-shadow: 0 4px 20px rgba(255, 154, 60, 0.4);
    transform: translateY(-2px);
}

/* Cart modal responsive */
@media (max-width: 768px) {
    .hoyo-cart-modal-content {
        max-width: 100%;
    }

    .hoyo-cart-item {
        grid-template-columns: 50px 1fr;
        gap: 10px;
    }

    .hoyo-cart-item-qty,
    .hoyo-cart-item-total,
    .hoyo-cart-item-remove {
        grid-column: 2;
    }

    .hoyo-cart-item-qty {
        justify-self: start;
    }

    .hoyo-cart-item-total {
        justify-self: start;
    }

    .hoyo-cart-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .hoyo-cart-item {
        position: relative;
        padding-right: 40px;
    }
}

/* ===== Item Details Modal Styles ===== */
.hoyo-item-details-loading,
.hoyo-item-details-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
}

.hoyo-item-details-loading i,
.hoyo-item-details-error i {
    font-size: 48px;
    margin-bottom: 15px;
}

.hoyo-item-details-error i {
    color: #e74c3c;
}

.hoyo-item-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hoyo-item-details-image {
    width: 100%;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 100%);
    border-radius: 12px;
    padding: 20px;
}

.hoyo-item-details-image img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

.hoyo-item-details-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hoyo-item-details-name {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.hoyo-item-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hoyo-details-category,
.hoyo-details-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #aaa;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

.hoyo-details-category i,
.hoyo-details-shop i {
    color: #ffd700;
}

.hoyo-item-details-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hoyo-details-price-original {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

.hoyo-details-price-final {
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
}

.hoyo-details-discount {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
}

.hoyo-details-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
}

.hoyo-details-stock.in-stock {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.hoyo-details-stock.out-of-stock {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

.hoyo-item-details-description {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
}

.hoyo-item-details-description h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hoyo-item-details-description h4 i {
    color: #4a90c2;
}

.hoyo-item-details-description p {
    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Shop Loading Indicator */
.hoyo-shop-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.hoyo-shop-loader {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90c2;
    border-radius: 50%;
    animation: hoyo-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes hoyo-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hoyo-shop-loading p {
    color: #888;
    font-size: 14px;
}

/* Shop Type Tabs */
.hoyo-shop-type-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.hoyo-shop-type-btn {
    padding: 12px 28px;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hoyo-shop-type-btn:hover {
    color: #4a90c2;
}

.hoyo-shop-type-btn.active {
    background: linear-gradient(135deg, #4a90c2 0%, #67b8e3 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(74, 144, 194, 0.3);
}

.hoyo-shop-type-btn i {
    font-size: 16px;
}

/* Shop Item Badges */
.hoyo-shop-item {
    position: relative;
}

.hoyo-shop-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.hoyo-badge-new {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: #fff;
}

.hoyo-badge-recommended {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: #fff;
}

.hoyo-badge-event {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: #fff;
}

.hoyo-shop-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: #fff;
    border-radius: 4px;
    z-index: 2;
}

/* Price with discount styling */
.hoyo-price-original {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-right: 5px;
}

/* Inline discount badge (after price) */
.hoyo-shop-discount-inline {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px !important;
    font-weight: 700;
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: #fff !important;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1;
}

/* Subpage Responsive */
@media (max-width: 992px) {
    .hoyo-subpage-hero {
        height: 350px;
    }

    .hoyo-subpage-hero-title {
        font-size: 42px;
    }

    .hoyo-subpage-content {
        padding: 50px 30px 70px;
    }
}

@media (max-width: 768px) {
    .hoyo-subpage-hero {
        height: 300px;
    }

    .hoyo-subpage-hero-title {
        font-size: 32px;
    }

    .hoyo-subpage-hero-desc {
        font-size: 15px;
    }

    .hoyo-subpage-content {
        padding: 40px 20px 60px;
    }

    .hoyo-download-grid {
        grid-template-columns: 1fr;
    }

    .hoyo-system-table th,
    .hoyo-system-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .hoyo-ranking-tabs {
        justify-content: center;
    }

    .hoyo-ranking-table th,
    .hoyo-ranking-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .hoyo-ticket-form {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .hoyo-subpage-hero {
        height: 260px;
    }

    .hoyo-subpage-hero-tag {
        font-size: 11px;
        padding: 6px 18px;
    }

    .hoyo-subpage-hero-title {
        font-size: 26px;
    }

    .hoyo-subpage-hero-desc {
        font-size: 14px;
    }

    .hoyo-section-title-v2 {
        font-size: 22px;
    }

    .hoyo-download-card {
        padding: 25px;
    }

    .hoyo-support-card {
        padding: 25px;
    }

    .hoyo-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .hoyo-shop-item-info {
        padding: 15px;
    }

    .hoyo-shop-item-name {
        font-size: 14px;
    }

    .hoyo-shop-item-price {
        font-size: 16px;
    }
}