/* @import url('fonts/inter.css'); */

:root {
    --primary-color: #ba0731;
    --primary-gradient: linear-gradient(135deg, #ba0731 0%, #8a0524 100%);
    --accent-color: #c5a059;
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --bg-light: #ffffff;
    --bg-dark: #000000;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "HarmonyOS Sans", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

/* Splash Screen */
#splash {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
    background: #fff;
}

.intro-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    /* 对齐 xmage.html */
    background-color: #fff;
    overflow: hidden;
}

.scene {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
}

.fly-img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300px;
    height: 420px;
    margin-left: -150px;
    margin-top: -210px;
    object-fit: cover;
    border-radius: 16px;
    will-change: transform, opacity;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.final-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity;
    opacity: 0;
}

.intro-content {
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    /* 防止大容器遮挡背景的交互 */
    padding-bottom: 15vh;
    /* 进一步增加底部内边距，使整个文字区域整体上移 */
}

.intro-content>* {
    pointer-events: auto;
    /* 恢复子元素（如按钮）的点击功能 */
}

.intro-content h1.intro-title {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    /* 缩小大标题字号，降低响应式缩放系数从 6vw 到 4vw */
    letter-spacing: 0.2em;
    margin: 0;
    font-weight: 800;
    /* Bolder for "微光成炬" */
    text-transform: none;
    color: #000;
}

.intro-content p.intro-sub-top,
.intro-content p.intro-sub-bottom {
    margin: 0;
    color: #000;
    opacity: 0;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-sub-top {
    animation: fadeUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3.2s;
}

.intro-sub-bottom {
    animation: fadeUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3.4s;
}

.intro-btn {
    opacity: 0;
    animation: fadeUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 3.6s;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.accent-text {
    color: #ba0731 !important;
}

.white-btn:hover {
    background: #f8f8f8 !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #bbb !important;
}

/* Header/Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    /* 防止遮挡点击 */
}

nav.scrolled {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    /* 恢复点击 */
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: inherit;
    white-space: nowrap;
}

/* Section Common */
section {
    position: relative;
    padding: 80px 5%;
    /*min-height: 100vh;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-light);
}

/* Section Fade Animations */
.fade-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

h2.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.big-text {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 900px;
}

/* Track Cards - Flex Layout for Push Animation */
.track-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    height: 650px;
    /* Fixed height to prevent jumping */
    overflow: hidden;
    position: relative;
    container-type: inline-size;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card {
    flex: 1 1 50%;
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Expansion States */
.hover-card.expanded {
    flex: 1 0 100% !important;
    cursor: default;
}

/* Anchoring: Track 1 expands right, Track 2 expands left */
#track-photo.expanded .card-content-wrapper {
    flex-direction: row;
}

#track-design.expanded .card-content-wrapper {
    flex-direction: row-reverse;
}

.hover-card.shrunken {
    flex: 0 0 0% !important;
    opacity: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.card-content-wrapper {
    display: flex;
    width: 100%;
    /* Match expanded card width */
    height: 100%;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-preview {
    width: 50cqw;
    /* Lock to 50% of the grid container */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.hover-card.expanded .card-preview {
    width: 50cqw;
    /* Keep strictly 50cqw */
}

.card-detail {
    width: 50cqw;
    /* Hidden initially, but layout width is fixed */
    flex-shrink: 0;
    background: #fff;
    padding: 40px 60px;
    position: relative;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.6s ease;
    overflow-y: auto;
}

#track-design .card-detail {
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.hover-card.expanded .card-detail {
    display: flex;
    opacity: 1;
}

/* Close Button - Keep as backup but toggle btn is primary */
.close-detail-btn {
    display: none;
    /* Hide X button as user wants toggle btn */
}

/* Detail Content Scrolling */
.detail-inner {
    flex: 1;
    overflow-y: auto;
    padding-right: 20px;
    margin-top: 20px;
}

/* Custom Scrollbar */
.detail-inner::-webkit-scrollbar {
    width: 4px;
}

.detail-inner::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.detail-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.detail-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Buttons */
.learn-more-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.learn-more-btn:hover {
    background: #c5a059;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

#track-design .learn-more-btn {
    background: var(--accent-color);
}

#track-design .learn-more-btn:hover {
    background: var(--primary-color);
}

.hover-card img {
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-card:hover img {
    transform: scale(1.05);
}

/* Prize Cards - Restored Original Style */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.prize-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    border-radius: 24px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.prize-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.prize-card-rank {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.prize-card-amount {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.prize-card-count {
    font-size: 1rem;
    color: #888;
    margin-bottom: 30px;
}

.prize-card-list {
    list-style: none;
    padding: 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 2;
}

/* ====== Timeline New Dual Layout ====== */
.timeline-dual {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
}

.timeline-axis {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), #eee);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-headers {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.timeline-headers>div {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.timeline-row.mt-40 {
    margin-top: 40px;
}

.timeline-card {
    width: 45%;
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 2;
}

.timeline-card.left {
    text-align: right;
}

.timeline-card.right {
    text-align: left;
}

.timeline-card.center {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px rgba(186, 7, 49, 0.2);
    /* using primary-color rgba */
    z-index: 3;
}

.timeline-card.left .timeline-dot {
    right: -11.5%;
    /* Adjust based on calc to sit exactly on the center axis */
    transform: translateX(50%);
}

.timeline-card.right .timeline-dot {
    left: -11.5%;
    transform: translateX(-50%);
}

.timeline-card.center .timeline-dot {
    left: 50%;
    top: -8px;
    transform: translateX(-50%);
}

.time-date {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.time-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Lightbox Styles */
.image-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.image-lightbox.is-open {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-lightbox.is-open .lightbox-content img {
    transform: scale(1);
}

@media screen and (max-width: 768px) {
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* Rest of mobile styling below */
@media (max-width: 768px) {

    .review-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.cta-btn:hover {
    background: #00695c;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 77, 64, 0.3);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 80px;
    text-align: left;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 1.1rem !important;
        text-align: center;
    }

    footer .logo {
        font-size: 1.2rem !important;
        margin-bottom: 20px !important;
    }

    .nav-links {
        gap: 12px !important;
        font-size: 0.85rem !important;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center !important;
        gap: 30px !important;
    }

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

    section {
        padding: 40px 20px;
        /* Increased side padding for better mobile space */
    }

    /* Reduce Prize Cards size and show 2 per row on mobile */
    .prize-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin: 0 10px;
        /* Added horizontal margin to the grid for extra breathing room */
    }

    .prize-card {
        padding: 25px 15px;
        /* Slightly adjusted padding */
        min-height: auto;
    }

    .prize-card-amount {
        font-size: 1.8rem;
    }

    .prize-card-rank {
        font-size: 0.9rem;
    }

    .prize-card-count {
        font-size: 0.8rem;
    }

    .prize-card-list {
        font-size: 0.85rem;
    }
}

/* Video Section Styles */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

.video-container-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #fff;
    background: #000;
}

.video-caption {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

@media (max-width: 968px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Media Queries for Tracks */
@media (max-width: 968px) {
    .track-grid {
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .hover-card {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 400px;
    }

    .card-content-wrapper {
        flex-direction: column !important;
        width: 100% !important;
    }

    .card-preview {
        width: 100% !important;
    }

    .card-detail {
        display: none !important;
    }

    .hover-card.shrunken {
        display: flex !important;
        flex: 1 1 auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Modal for Mobile Details */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    border-radius: 32px;
    position: relative;
    padding: 60px 25px 40px;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.8rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: .6;
    padding: 5px;
}

#modal-content-area .detail-inner {
    padding: 0;
}

body.modal-open {
    overflow: hidden;
}

 /* Lightbox Styles */ .image-lightbox  {
         display:  none;
         position:  fixed;
         z-index:  10000;
         left:  0;
         top:  0;
         width:  100%;
         height:  100%;
         background-color:  rgba(0,  0,  0,  0.95);
         backdrop-filter:  blur(15px);
         -webkit-backdrop-filter:  blur(15px);
         opacity:  0;
         transition:  opacity 0.4s ease;
         pointer-events:  none;
     
}

  .image-lightbox.is-open  {
         display:  flex;
         justify-content:  center;
         align-items:  center;
         opacity:  1;
         pointer-events:  auto;
     
}

  .lightbox-close  {
         position:  absolute;
         top:  30px;
         right:  40px;
         color:  #fff;
         font-size:  50px;
         font-weight:  300;
         cursor:  pointer;
         line-height:  1;
         transition:  transform 0.3s ease;
         z-index:  10001;
     
}

  .lightbox-close:hover  {
         transform:  rotate(90deg);
     
}

  .lightbox-content  {
         width:  100%;
         height:  100%;
         display:  flex;
         justify-content:  center;
         align-items:  center;
         padding:  20px;
     
}

  .lightbox-content img  {
         max-width:  90%;
         max-height:  90%;
         object-fit:  contain;
         border-radius:  4px;
         box-shadow:  0 0 40px rgba(0,  0,  0,  0.8);
         transform:  scale(0.9);
         transition:  transform 0.5s cubic-bezier(0.165,  0.84,  0.44,  1);
     
}

  .image-lightbox.is-open .lightbox-content img  {
         transform:  scale(1);
     
}

  @media screen and (max-width: 768px)  {
         .lightbox-close  {
                 top:  20px;
                 right:  20px;
                 font-size:  40px;
             
    }

     
}

/* Track Cards Responsive Optimization */
.track-img-box {
    overflow: hidden;
    height: auto;
}

.track-img-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.track-text-box {
    padding: 50px;
}

@media (max-width: 768px) {
    .track-img-box {
        height: auto;
        /* Further reduced height on mobile */
    }

    .track-text-box {
        padding: 30px 20px;
        /* Tighter padding on mobile */
    }
}

   