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

body {
    font-family: 'Noto Sans SC', 'Source Han Sans', 'Source Han Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Section */
.header {
    position: relative;
    width: 100%;
    padding-bottom: 31.40625%; /* 603/1920*100 */
    background-image: var(--header-bg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
}

/* Navigation Bar */
.navbar {
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 1000;
}

.header-top-left {
    position: absolute;
    top: 1rem;
    left: 4rem;
    z-index: 1000;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2.8rem;
    letter-spacing: 0.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    text-align: center;
}

.header h2 {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin: 0;
    font-weight: normal;
    opacity: 0.9;
    text-align: center;
}

.header p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.header-host,
.header-support {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
}

.header-host {
    bottom: 4rem;
}

.header-support {
    bottom: 2rem;
}

/* Fixed QR Code Module */
.fixed-qr {
    position: fixed;
    bottom: 20px;
    right: 41px;
    z-index: 1000;
}

.qr-container {
    width: 100px;
    height: 131px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.53);
    border-radius: 14px;
    background-color: #ffffff;
}

.qr-image {
    width: 100%;
    height: calc(100% - 25px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 15px 13px 0 13px;
}

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

.qr-text {
    font-size: 0.8rem;
    color: #000000;
    text-align: center;
    margin: 7px 0 13px 0;
    width: 100%;
}

/* Main Content */
.container {
    width: 100%;
}

.section {
    padding: 4rem 12rem 4rem 12rem;
    background-color: #ffffff;
}

.section1 {
    padding: 4rem 13rem 4rem 13rem;
    background-color: #F8F6F9;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #1a1a2e;
}

/* Activity Theme Section */
.theme-section {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
}

.theme-image {
    flex: 0 0 300px;
    height: 537px;
    width: 350px;
    background-image: var(--theme-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-content {
    flex: 1;
}

.theme-content h3 {
    color: #6F090B;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.section-number {
    font-size: 2rem;
    font-weight: normal;
}

.theme-content p {
    margin-bottom: 1.2rem;
    color: #000000;
    text-indent: 0;
    font-size: 1rem;
    line-height: 1.8;
}

/* Activity Content Section */
.content-section h3 {
    color: #6F090B;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: bold;
}

.content-section h4 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 3rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #000000;
    font-size: 1rem;
}

.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.info-table th,
.info-table td {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
    color: #000000;
    font-size: 1rem;
}

.info-table th {
    background-color: #6F090B;
    color: white;
    font-weight: normal;
    font-size: 1rem;
}

/* Gallery Section */
.gallery-section {
    background-color: #ffffff;
    padding: 4rem 12rem 4rem 12rem;
}

.gallery-title {
    text-align: center;
    margin-bottom: 0.5rem;
    color: #6F090B;
    font-size: 1.5rem;
    font-weight: bold;
}

.gallery-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #D5AC74;
    font-size: 0.9rem;
}

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.gallery-grid-left {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
}

.gallery-grid-right {
    grid-template-columns: repeat(4, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-grid-right .gallery-item {
    aspect-ratio: 147/102;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.gallery-grid-right .gallery-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    padding: 0.2rem;
    transition: all 0.3s ease;
}

.gallery-grid-right .gallery-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    aspect-ratio: 147/102;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #f5f5f5;
}

/* Activity Flow Section */
.flow-section {
    position: relative;
    width: 100%;
    padding-bottom: 34%; /* 590/1920*100 */
    background-image: var(--flow-section-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #34373E;
    overflow: hidden;
}

.flow-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.flow-title {
    font-size: 1.5rem;
    /* margin-bottom: 0.5rem; */
    margin-top: 1rem;
    color: white;
    font-weight: bold;
    text-align: center;
}

.flow-subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: #D5AC74;
    text-align: center;
}

.flow-cards {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.flow-card {
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 280px;
    min-height: 162px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.flow-card h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #D5AC74;
    text-align: center;
    font-weight: normal;
}

.flow-card p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #000000;
    text-align: center;
    line-height: 1.6;
}

.flow-qr {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.flow-qr p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #34373E;
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.flow-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.contact-box {
    border: 1px solid #34373E;
    border-radius: 60px;
    padding: 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-item {
    font-size: 0.9rem;
    color: #34373E;
    margin: 0;
}

/* Footer Section */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="300"><rect width="100%" height="100%" fill="%231a1a2e"/><path d="M0 0 Q300 100 600 0 T1200 100 L1200 300 L0 300 Z" fill="%2316213e"/><path d="M0 100 Q200 200 400 100 T800 200 T1200 100 L1200 300 L0 300 Z" fill="%230f3460"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-info {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-info h3 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: white;
    font-weight: normal;
}

.footer-info a {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: white;
    font-weight: normal;
}

.footer-qr {
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close-modal:hover {
    color: #ccc;
}

.modal-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    text-align: center;
    z-index: 10001;
}

.modal-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Flow Section Responsive */
    .flow-cards {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .flow-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .flow-section {
        padding: 3rem 1rem;
        padding-bottom: 120%; /* Adjusted height for better card visibility */
    }
    
    .flow-card {
        flex: 1 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        padding: 1.5rem;
        width: auto;
        min-height: 160px;
        margin-bottom: 0;
    }
    
    /* Flow Title and Subtitle Responsive */
    .flow-title {
        font-size: 1.3rem;
        width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .flow-subtitle {
        font-size: 0.8rem;
        width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    /* Footer Responsive */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-info {
        text-align: center;
    }
    /* Navigation Bar */
    .navbar {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        display: flex;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 0.5rem;
    }

    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
        max-width: 100%;
    }

    .nav-item {
        flex: 1;
        min-width: auto;
        text-align: center;
        max-width: calc(33.33% - 0.3rem);
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
        display: block;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    /* Header Top Left Text */
    .header-top-left {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 0.6rem;
        letter-spacing: 0.05rem;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

    .header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        word-break: break-word;
        white-space: normal;
        width: 80%;
        line-height: 1.3;
    }

    .header h2 {
        font-size: 1.2rem;
    }

    /* Sections */
    .section {
        padding: 2rem 1rem;
    }
    
    .section1 {
        padding: 2rem 1rem;
    }

    .theme-section {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .theme-image {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .info-table {
        font-size: 0.9rem;
    }

    .info-table th,
    .info-table td {
        padding: 0.6rem;
    }

    .header-host {
        font-size: 0.7rem;
        bottom: 2.5rem;
        padding: 0 0.8rem;
    }
    
    .header-support {
        font-size: 0.7rem;
        bottom: 1rem;
        padding: 0 0.8rem;
    }
}

/* Mobile Responsive Design (≤480px) */
@media (max-width: 480px) {
    /* Navigation Bar */
    .navbar {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        padding: 0.3rem;
    }

    .nav-list {
        gap: 0.2rem;
    }

    .nav-item {
        max-width: calc(50% - 0.2rem);
    }

    .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }
    
    /* Header Top Left Text */
    .header-top-left {
        top: 0.3rem;
        left: 0.3rem;
        font-size: 0.5rem;
        letter-spacing: 0.05rem;
        max-width: 100%;
        word-break: break-word;
        white-space: normal;
    }
    
    .header h1 {
        font-size: 1.6rem;
        top: 6rem;
        word-break: break-word;
        white-space: normal;
        width: 85%;
        line-height: 1.3;
    }

    .header h2 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .theme-content h3 {
        font-size: 1.4rem;
    }

    .section-number {
        font-size: 2rem;
    }

    .theme-image {
        height: 250px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .gallery-grid-left {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid-right {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-support {
        font-size: 0.6rem;
        bottom: 0.8rem;
        padding: 0 0.3rem;
        line-height: 1.4;
    }
    
    .header-host {
        font-size: 0.6rem;
        bottom: 2rem;
        padding: 0 0.3rem;
        line-height: 1.4;
    }
    
    .flow-section {
        padding-bottom: 150%; /* Further increased height for mobile to ensure all cards are visible */
    }
    
    .flow-container {
        padding: 2rem 0.5rem;
        box-sizing: border-box;
    }
    
    .flow-cards {
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        align-items: stretch;
        justify-content: center;
    }
    
    .flow-card {
        padding: 1.5rem;
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0 auto 1rem;
        min-height: 150px;
    }
    
    /* Flow Title and Subtitle Responsive for Mobile */
    .flow-title {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .flow-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .nav-list {
        gap: 0.3rem;
    }
}

