/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    color: white;
    background-color: #0b1e4d;
    width: 100%;
    overflow-x: hidden; /* 防止水平滚动 */
    opacity: 1; /* 改为1，确保欢迎界面可见 */
    transition: opacity 1s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* 主内容容器 */
.main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.loaded .main-content {
    opacity: 1;
}

/* Welcome Screen Styles */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0b1e4d, #1e2b4d, #2a3b64);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    cursor: pointer; /* 提示用户可以点击跳过 */
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 实验室logo样式 */
.welcome-logo {
    width: 360px;
    height: 360px;
    margin-bottom: 100px;
    object-fit: contain;
    animation: logoFadeIn 1.5s ease-in-out;
    filter: drop-shadow(0 0 20px rgba(0, 209, 255, 0.3));
    transition: transform 0.3s ease;
}

.welcome-logo:hover {
    transform: scale(1.05);
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 添加一个小提示文字 */
.welcome-screen::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.typewriter {
    font-size: 4.5rem;
    font-weight: 600;
    color: #00d1ff;
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.5), 0 0 20px rgba(0, 209, 255, 0.3);
    /* 初始宽度为0 */
    width: 0;
    height: 6rem;
    border-right: 4px solid #00d1ff;
    overflow: hidden;
    white-space: nowrap;
    letter-spacing: 0.1em;
    display: inline-block; /* 确保元素正确显示 */
    /*
    Steps(<number_of_steps>，<direction>)
    steps接收两个参数：第一个参数指定动画分割的段数；第二个参数可选，接受 start和 end两个值，指定在每个间隔的起点或是终点发生阶跃变化，默认为 end。
    */
    animation: typewrite 3s steps(15) forwards,
      blink-cursor 0.75s steps(1) infinite;
}

@keyframes typewrite {
    0% {
        width: 0;
    }
    100% {
        width: 32ch; /* 增加宽度以适应更长的文字和更大的字体 */
    }
}

@keyframes blink-cursor {
    50% {
        /* transparent是全透明黑色(black)的速记法，即一个类似rgba(0,0,0,0)这样的值。 */
        border-color: transparent; /* #00000000 */
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .typewriter {
        font-size: 1.8rem;
        height: 2.5rem;
        border-right-width: 2px;
        letter-spacing: 0.05em;
    }
    
    @keyframes typewrite {
        0% {
            width: 0;
        }
        100% {
            width: 28ch; /* 调整移动端宽度以适应更长文字 */
        }
    }
    
    /* 移动端logo适配 */
    .welcome-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .typewriter {
        font-size: 1.4rem;
        height: 2rem;
        letter-spacing: 0.03em;
    }
    
    @keyframes typewrite {
        0% {
            width: 0;
        }
        100% {
            width: 26ch; /* 小屏幕调整宽度 */
        }
    }
    
    /* 小屏幕logo适配 */
    .welcome-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }
}

header {
    height: 100vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("fbf5508392c4f30a647af56f3e66a4b1.jpg") center/cover no-repeat; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* 动态粒子背景 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5; /* 增加z-index，确保在背景图之上，但在内容之下 */
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px; /* 增加粒子大小 */
    height: 4px; /* 增加粒子大小 */
    background: rgba(0, 209, 255, 0.8); /* 增加不透明度 */
    border-radius: 50%;
    animation: float 6s infinite linear;
    box-shadow: 0 0 8px rgba(0, 209, 255, 1), 0 0 16px rgba(0, 209, 255, 0.6); /* 增强光晕效果 */
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 为header添加动态光效 */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 255, 0.1), transparent);
    animation: shine 8s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.8;
}

#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.6;
}

.hero {
    position: relative;
    z-index: 15; /* 增加z-index，确保在粒子之上 */
    text-align: center;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3rem; /* Increase the font size */
    animation: zoomIn 1.5s ease-in-out; /* Apply the zoomIn animation */
    position: relative;
    z-index: 10;
}

.hero p {
    font-size: 1.5rem;
    margin-top: 10px;
    text-align: center;
    animation: fadeInUp 2s ease-in-out;
    position: relative;
    z-index: 10;
}

.cta-button {
    position: relative; /* Ensure the button can be moved relative to its normal position */
    top: 50px; /* Adjust this value to move the button down */
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    display: inline-block;
    z-index: 10;
    animation: fadeInUp 2.5s ease-in-out;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* styles.css */
ul {
    list-style-type: none; /* 移除默认的项目符号 */
    padding: 0; /* 移除内边距 */
}

ul li {
    margin-bottom: 20px; /* 在列表项之间添加一些间距 */
}

a {
    text-decoration: none; /* 移除下划线 */
    color: #f9fafa; /* 设置链接颜色 */
}

a:hover {
    color: #d33682; /* 当鼠标悬停在链接上时改变颜色 */
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00d1ff;
}

/* About Section */
.about-section,
.competitions-section,
.contact-section {
    padding: 60px 20px;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-section p,
.contact-section p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Competitions */
.competitions-section ul {
    list-style: none;
    margin-top: 20px;
}

.competitions-section li {
    font-size: 1.2rem;
    margin: 10px 0;
    animation: fadeInUp 2s ease-in-out;
}

.competitions-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    flex-wrap: wrap;
    perspective: 1000px; /* 添加3D透视效果 */
}

.competition-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #2a3b64, #1e2b4d, #3a4f76);
    padding: 40px 30px;
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 280px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* 添加光晕效果的伪元素 */
.competition-item::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d1ff, #007bff, #00d1ff, #007bff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.competition-item:hover::before {
    opacity: 1;
    animation: borderGlow 2s infinite;
}

@keyframes borderGlow {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.competition-item:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 209, 255, 0.3);
}

.competition-icon {
    width: 120px; /* 从100px增大到120px */
    height: 120px; /* 从100px增大到120px */
    margin-bottom: 20px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 0; /* 移除圆角 */
    padding: 0; /* 移除内边距 */
    background: transparent; /* 移除背景 */
    backdrop-filter: none; /* 移除模糊效果 */
    border: none; /* 移除边框 */
}

.competition-item:hover .competition-icon {
    transform: scale(1.15) rotateY(10deg);
    background: transparent; /* 悬停时也保持透明背景 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 添加闪烁动画 */
@keyframes iconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.competition-icon:hover {
    animation: iconPulse 1.5s infinite;
}

.competition-item a {
    color: #f9fafa;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

/* 添加下划线动画 */
.competition-item a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d1ff, #007bff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.competition-item:hover a::after {
    width: 100%;
}

.competition-item a:hover {
    color: #00d1ff;
    transform: translateY(-2px);
}

/* 添加背景粒子效果 */
.competition-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 80%,
            rgba(0, 209, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(0, 123, 255, 0.1) 0%,
            transparent 50%
        );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.competition-item:hover::after {
    opacity: 1;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .competitions-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        perspective: none; /* 移动端禁用3D效果 */
    }

    .competition-item {
        min-width: 250px;
        width: 85%;
        padding: 30px 20px;
        border-radius: 15px;
    }

    .competition-item:hover {
        transform: translateY(-8px); /* 简化移动端悬停效果 */
    }

    .competition-icon {
        width: 100px; /* 移动端从80px增大到100px */
        height: 100px; /* 移动端从80px增大到100px */
        margin-bottom: 15px;
    }

    .competition-item:hover .competition-icon {
        transform: scale(1.1); /* 简化移动端图标动画 */
    }

    .competition-item a {
        font-size: 1.1rem;
    }
}

/* 增强动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.competition-item {
    animation: fadeInUp 0.8s ease-out;
}

.competition-item:nth-child(1) {
    animation-delay: 0.1s;
}

.competition-item:nth-child(2) {
    animation-delay: 0.2s;
}

/* Footer */
.footer {
    background-color: #000814;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* 增加z-index确保在最上层 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #8b8080;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    position: relative;
    z-index: 10000; /* 确保模态框内容在最上层 */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.qr-code {
    width: 100%;
    height: auto;
    margin-top: 10px;
}

.animated-signature path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    fill: transparent;
    animation: drawSignature 6s ease-in-out infinite;
    stroke-width: 3px;
    stroke: #f7f4f4;
}

@keyframes drawSignature {
    0% {
        stroke-dashoffset: 2400;
    }

    15% {
        fill: transparent;
    }

    35%,
    75% {
        stroke-dashoffset: 0;
        fill: #ede8e8;
    }

    90%,
    to {
        stroke-dashoffset: 2400;
        fill: transparent;
    }
}

/* Gallery Section Styles */
.gallery-section {
    padding: 60px 20px;
    text-align: center;
}

.film-strip {
    width: 90%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid #2a3b64;
    background: linear-gradient(to right, #3a4f76, #1e2b4d);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.film-strip-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #4a5a7a #2a3b64;
}

.film-strip-container::-webkit-scrollbar {
    height: 8px;
}

.film-strip-container::-webkit-scrollbar-track {
    background: #2a3b64;
    border-radius: 10px;
}

.film-strip-container::-webkit-scrollbar-thumb {
    background: #4a5a7a;
    border-radius: 10px;
}

.film-strip-container::-webkit-scrollbar-thumb:hover {
    background: #5a6a8a;
}

.film-strip-container img {
    width: 600px;
    height: 400px;
    margin: 10px;
    border-radius: 8px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    object-fit: cover;
    cursor: pointer;
}

.film-strip-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.senior-section ul {
    list-style: none;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.senior-section li {
    font-size: 1.2rem;
    margin: 10px 0;
    animation: fadeInUp 2s ease-in-out;
    background: linear-gradient(135deg, #2a3b64, #1e2b4d);
    padding: 15px 25px;
    border-radius: 10px;
    border: 2px solid #4a5a7a;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.senior-section li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: #00d1ff;
}

.senior-section li a {
    color: #f9fafa;
    text-decoration: none;
    font-weight: 500;
}

.senior-section li a:hover {
    color: #00d1ff;
}

.qq-join-options {
    text-align: center;
}

.mobile-join {
    display: none;
}

.desktop-qr {
    display: block;
}

.qq-icon {
    margin-right: 8px;
    font-size: 1.3rem;
}

.group-number {
    color: #fffefe;
    font-size: 0.9rem;
    margin-top: 10px;
}

.qq-join-btn {
    display: inline-block;
    /* 添加多种兼容性写法 */
    background: #12b7f5; /* 回退颜色 */
    background: -webkit-linear-gradient(
        135deg,
        #12b7f5,
        #0084ff
    ); /* WebKit浏览器 */
    background: -moz-linear-gradient(135deg, #12b7f5, #0084ff); /* Firefox */
    background: -o-linear-gradient(135deg, #12b7f5, #0084ff); /* Opera */
    background: linear-gradient(135deg, #12b7f5, #0084ff); /* 标准语法 */
    color: white !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
    margin: 20px 0;
    border: 2px solid #0084ff;
    /* 添加重要性声明确保优先级 */
    background-clip: padding-box !important;
    -webkit-background-clip: padding-box !important;
}

.qq-join-btn:hover {
    background: #0084ff; /* 回退颜色 */
    background: -webkit-linear-gradient(135deg, #0084ff, #12b7f5);
    background: -moz-linear-gradient(135deg, #0084ff, #12b7f5);
    background: -o-linear-gradient(135deg, #0084ff, #12b7f5);
    background: linear-gradient(135deg, #0084ff, #12b7f5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 183, 245, 0.4);
    color: white !important;
    border-color: #12b7f5;
}

/* 针对微信浏览器的特殊处理 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .qq-join-btn {
        background: -webkit-gradient(
            linear,
            left top,
            right bottom,
            from(#12b7f5),
            to(#0084ff)
        ) !important;
    }

    .qq-join-btn:hover {
        background: -webkit-gradient(
            linear,
            left top,
            right bottom,
            from(#0084ff),
            to(#12b7f5)
        ) !important;
    }
}

/* 如果所有渐变都不支持，确保至少有纯色背景 */
.qq-join-btn {
    background-color: #12b7f5 !important;
}

.qq-join-btn:hover {
    background-color: #0084ff !important;
}

/* 确保按钮文字在各种情况下都清晰可见 */
.qq-join-btn,
.qq-join-btn:visited,
.qq-join-btn:active {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* 添加文字阴影增强对比 */
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* 确保移动端不出现水平滚动 */
    }

    /* 移动端隐藏跳过提示 */
    .welcome-screen::after {
        display: none;
    }

    /* 移动端logo适配 */
    .welcome-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }

    header {
        height: auto;
        padding: 20px;
        background-size: cover;
        width: 100%;
    }

    /* 移动端减少粒子效果的性能影响，但保留简化版本 */
    .particles-container {
        display: block; /* 在移动端显示简化的粒子效果 */
    }
    
    /* 移动端粒子简化 */
    .particle {
        width: 2px !important;
        height: 2px !important;
        box-shadow: 0 0 4px rgba(0, 209, 255, 0.6) !important;
    }

    /* 移动端简化光效 */
    header::before {
        animation-duration: 12s; /* 减慢动画速度 */
    }

    #background-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh; /* 限制为视窗高度 */
        max-height: 200px; /* 设置最大高度 */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: 0.6;
    }

    .hero {
        text-align: center;
        width: 100%;
        padding: 0 10px; /* 添加左右内边距 */
    }

    .hero h1 {
        font-size: 2rem;
        word-wrap: break-word; /* 处理长文本 */
    }

    .hero p {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .cta-button {
        top: 20px;
        font-size: 1rem;
        padding: 8px 16px;
        margin: 0 auto;
        display: block;
        width: fit-content; /* 适应内容宽度 */
    }

    .about-section,
    .competitions-section,
    .contact-section,
    .gallery-section {
        padding: 40px 15px; /* 增加左右内边距 */
        width: 100%;
        overflow-x: hidden;
    }

    .film-strip {
        width: 100%;
        margin: 0;
        border-radius: 5px;
    }

    .film-strip-container {
        padding: 5px; /* 减小内边距 */
    }

    .film-strip-container img {
        width: 250px; /* 进一步减小移动端图片宽度 */
        height: 160px;
        min-width: 250px;
        margin: 5px;
    }

    .gallery-section {
        padding: 20px 10px; /* 减小上下内边距 */
    }

    h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .about-section p,
    .contact-section p {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .competitions-section li {
        font-size: 1rem;
        word-wrap: break-word;
    }

    .modal-content {
        width: 95%; /* 调整模态框宽度 */
        margin: 10% auto;
        max-width: none;
    }

    #signature-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .animated-signature {
        transform: scale(0.7);
        transform-origin: center;
        margin: 0 auto;
    }

    .animated-signature path {
        stroke-width: 2px;
    }

    .senior-section ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .senior-section li {
        width: 80%;
        min-width: auto;
    }

    .competitions-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .competition-item {
        min-width: 200px;
        width: 90%;
        padding: 20px 15px;
    }

    .competition-icon {
        width: 80px; /* 在最小屏幕上保持80px */
        height: 80px;
    }

    .competition-item a {
        font-size: 1rem;
    }
    .mobile-join {
        display: block;
    }

    .desktop-qr {
        display: none;
    }

    .qq-join-btn {
        font-size: 1.1rem;
        padding: 12px 25px;
        color: white !important; /* 移动端也确保白色文字 */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }
    /* 微信引导样式 */
    .wechat-guide {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
        color: #333 !important;
    }

    .guide-step {
        margin-bottom: 25px;
        padding: 15px;
        border-radius: 8px;
        background-color: #f8f9fa;
        color: #333 !important;
    }

    .guide-step h3 {
        color: #007bff !important;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .guide-step p {
        color: #555 !important;
        line-height: 1.6;
        margin: 8px 0;
    }

    .copy-btn {
        background-color: #07c160;
        color: white !important;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
        font-weight: bold;
    }

    .copy-btn:hover {
        background-color: #06ad56;
    }

    .qr-code-small {
        max-width: 150px;
        height: auto;
        display: block;
        margin: 10px auto;
        border-radius: 8px;
    }

    /* 确保模态框内容有正确的背景和文字颜色 */
    .modal-content {
        background-color: rgba(184, 172, 172, 0.637) !important;
        color: #333 !important;
    }

    .modal-content h2 {
        color: #333 !important;
    }
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none; /* Prevents the tooltip from interfering with mouse events */
}
