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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 30%, #dee2e6 100%);
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    color: #495057;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
    /* 移动端优化 */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Peaceful background animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(173, 216, 230, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(221, 160, 221, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 40% 40%, rgba(240, 248, 255, 0.15) 0%, transparent 60%);
    animation: gentleFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1;
}

@keyframes gentleFloat {
    0% {
        opacity: 0.3;
        transform: translateY(0px);
    }

    100% {
        opacity: 0.6;
        transform: translateY(-10px);
    }
}

/* Navigation styles */
.main-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(173, 216, 230, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.3rem;
    color: #6c757d;
}

.nav-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-title {
    color: #495057;
    font-family: 'Georgia', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

@keyframes gentleGlow {
    0% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

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

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 400;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(173, 216, 230, 0.3);
    font-family: 'Georgia', serif;
    height: 44px;
    box-sizing: border-box;
    min-width: 120px;
}

.nav-link:hover {
    color: #495057;
    background: rgba(173, 216, 230, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.3);
    border-color: rgba(173, 216, 230, 0.5);
}

.nav-link.active {
    background: linear-gradient(135deg, #b8d4f0, #d4c5f9);
    color: #495057;
    box-shadow: 0 4px 12px rgba(173, 216, 230, 0.4);
    border-color: rgba(173, 216, 230, 0.6);
}

.nav-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(173, 216, 230, 0.5);
}

/* Language dropdown styles */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 400;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(173, 216, 230, 0.3);
    font-family: 'Georgia', serif;
    font-size: 0.9em;
    background: transparent;
    cursor: pointer;
    height: 44px;
    box-sizing: border-box;
    min-width: 100px;
}

.lang-dropdown-btn:hover {
    color: #495057;
    background: rgba(173, 216, 230, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(173, 216, 230, 0.2);
    border-color: rgba(173, 216, 230, 0.5);
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 120px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    z-index: 1;
    border: 1px solid rgba(173, 216, 230, 0.3);
    overflow: hidden;
}

.lang-dropdown-content a {
    color: #6c757d;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    font-size: 0.9em;
}

.lang-dropdown-content a:hover {
    background-color: rgba(173, 216, 230, 0.1);
    color: #495057;
}

.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

.lang-dropdown:hover .lang-dropdown-btn {
    color: #495057;
    background: rgba(173, 216, 230, 0.1);
    box-shadow: 0 2px 8px rgba(173, 216, 230, 0.2);
    border-color: rgba(173, 216, 230, 0.5);
}

/* Language link styles */
.lang-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 400;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(173, 216, 230, 0.3);
    font-family: 'Georgia', serif;
    font-size: 0.9em;
}

.lang-link:hover {
    color: #495057;
    background: rgba(173, 216, 230, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(173, 216, 230, 0.2);
    border-color: rgba(173, 216, 230, 0.5);
}

.lang-link.active {
    background: linear-gradient(135deg, #b8d4f0, #d4c5f9);
    color: #495057;
    box-shadow: 0 2px 8px rgba(173, 216, 230, 0.3);
    border-color: rgba(173, 216, 230, 0.6);
}

.lang-link.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(173, 216, 230, 0.4);
}

.site-header {
    background: rgba(255, 240, 245, 0.7); /* 淡粉色背景 */
    backdrop-filter: blur(10px);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 182, 193, 0.3); /* 粉色边框 */
}

.header-content h2 {
    color: #ff69b4; /* 热粉红色 */
    margin: 0 0 15px 0;
    font-size: 2.2em;
    font-weight: 300;
    font-family: 'Georgia', serif;
    letter-spacing: 1px;
    animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
    0% {
        transform: translateY(0px);
        opacity: 0.9;
    }

    100% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

.header-content p {
    color: #868e96;
    margin: 0;
    font-size: 1.2em;
    font-weight: 300;
    font-style: italic;
}

.nav-links {
    margin-top: 20px;
}

.nav-links a {
    color: #6c757d;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #adb5bd;
    border-radius: 25px;
    transition: all 0.4s ease;
    font-weight: 300;
    margin: 0 8px;
    font-family: 'Georgia', serif;
    position: relative;
    overflow: hidden;
}

.nav-links a:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #6c757d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.site-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 50px 0 30px 0;
    margin-top: auto;
    border-top: 1px solid rgba(173, 216, 230, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #ff69b4; /* 热粉红色 */
    margin-bottom: 20px;
    font-size: 1.3em;
    font-family: 'Georgia', serif;
    font-weight: 400;
}

.footer-section p {
    color: #868e96;
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 300;
}

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

.footer-section li {
    color: #868e96;
    padding: 8px 0;
    line-height: 1.6;
    font-weight: 300;
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(173, 216, 230, 0.3);
    margin-top: 40px;
}

.footer-bottom p {
    color: #adb5bd;
    margin: 0;
    font-size: 0.95em;
    font-weight: 300;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 25px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 182, 193, 0.3); /* 粉色边框 */
    max-width: 600px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.header {
    margin-bottom: 40px;
}

h1 {
    color: #ff69b4; /* 热粉红色 */
    margin-bottom: 25px;
    font-size: 2.8em;
    font-family: 'Georgia', serif;
    font-weight: 300;
    letter-spacing: 1px;
    animation: gentleFloat 8s ease-in-out infinite alternate;
}

.language-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.lang-btn {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(173, 216, 230, 0.4);
    padding: 8px 14px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.4s ease;
    color: #6c757d;
    backdrop-filter: blur(5px);
    font-family: 'Georgia', serif;
}

.lang-btn:hover {
    background: rgba(173, 216, 230, 0.2);
    border-color: rgba(173, 216, 230, 0.6);
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(173, 216, 230, 0.3);
}

.lang-btn.active {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    color: #495057;
    border-color: rgba(173, 216, 230, 0.6);
    box-shadow: 0 3px 10px rgba(173, 216, 230, 0.4);
}

.instructions {
    color: #868e96;
    margin-bottom: 35px;
    font-size: 1.3em;
    min-height: 2.6em;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
}

.game-area {
    margin-bottom: 30px;
    position: relative;
    /* 添加一些内边距以确保内容不会紧贴边缘 */
    padding: 10px 0;
}

.image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 182, 193, 0.3); /* 粉色边框 */
    /* 确保图片容器居中 */
    margin-left: auto;
    margin-right: auto;
}

#game-image {
    width: 100%;
    max-width: 450px;
    height: 450px;
    object-fit: cover;
    transition: filter 0.5s ease;
    cursor: pointer;
    display: block;
}

.blurred-image {
    filter: blur(15px) brightness(1.1);
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 10;
}

.progress-container {
    margin-top: 25px;
    padding: 25px;
    background: rgba(255, 240, 245, 0.8); /* 淡粉色背景 */
    backdrop-filter: blur(5px);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 182, 193, 0.3); /* 粉色边框 */
    /* 确保进度条容器居中 */
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 400;
    color: #ff69b4; /* 热粉红色 */
    font-family: 'Georgia', serif;
}

#progress-text {
    color: #ff69b4; /* 热粉红色 */
    font-size: 1.2em;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 22px;
    background: rgba(255, 240, 245, 0.8); /* 淡粉色背景 */
    border-radius: 11px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 182, 193, 0.3); /* 粉色边框 */
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffb6c1 0%, #ff69b4 100%); /* 粉色渐变 */
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 11px;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: gentleShimmer 3s infinite;
}

@keyframes gentleShimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.progress-info {
    text-align: center;
    color: #868e96;
    font-size: 0.95em;
    font-weight: 300;
}

#click-counter {
    color: #6c757d;
    font-weight: 500;
}

#max-clicks {
    color: #6c757d;
    font-weight: 400;
}


.success-message {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%); /* 淡粉色渐变 */
    padding: 25px;
    border-radius: 20px;
    animation: gentleFadeIn 0.8s ease;
    border: 2px solid rgba(255, 182, 193, 0.4); /* 粉色边框 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    /* 添加最大宽度以匹配图片容器 */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* 当按钮在图片上方时，确保有足够的底部边距 */
    margin-bottom: 20px;
}

.success-message h2 {
    color: #ff69b4; /* 热粉红色 */
    margin-bottom: 15px;
    font-size: 2em;
    font-family: 'Georgia', serif;
    font-weight: 300;
}

.success-message p {
    color: #ff69b4; /* 热粉红色 */
    margin-bottom: 20px;
    font-size: 1.2em;
    font-style: italic;
    font-weight: 300;
}

.success-message button {
    background: linear-gradient(135deg, #ffb6c1, #ff69b4); /* 粉色渐变 */
    color: white;
    border: 1px solid rgba(255, 182, 193, 0.5);
    padding: 14px 28px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Georgia', serif;
    font-weight: 400;
    /* 增加按钮的可见性和触摸区域 */
    min-width: 150px;
    min-height: 44px;
    /* 居中显示按钮 */
    display: block;
    margin: 0 auto;
}

.success-message button:hover {
    background: linear-gradient(135deg, #ffaebc, #ff5ca8); /* 深粉色渐变 */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 182, 193, 0.4);
}

@keyframes gentleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }

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

/* Desktop optimized design */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px;
}

/* Optimized navigation layout */
.site-header {
    padding: 40px 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.header-content p {
    font-size: 1.4em;
    margin-bottom: 25px;
}

.nav-links {
    margin-top: 30px;
}

.nav-links a {
    padding: 14px 26px;
    font-size: 1.15em;
    margin: 0 12px;
    transition: all 0.4s ease;
}

.nav-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(173, 216, 230, 0.3);
}

/* Optimized main content area */
.main-content {
    padding: 70px 20px;
}

.container {
    max-width: 700px;
    padding: 60px;
}

h1 {
    font-size: 3.2em;
    margin-bottom: 35px;
}

.instructions {
    font-size: 1.5em;
    margin-bottom: 45px;
}

#game-image {
    max-width: 500px;
    height: 500px;
}

/* Optimized footer */
.site-footer {
    padding: 60px 0 40px 0;
}

.footer-content {
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-section h3 {
    font-size: 1.5em;
    margin-bottom: 25px;
}

.footer-section p,
.footer-section li {
    font-size: 1.15em;
    line-height: 1.9;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .container {
        padding: 20px;
        max-width: 95%;
        margin: 10px auto;
        border-radius: 20px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .header-content h2 {
        font-size: 1.6em;
        margin-bottom: 12px;
    }

    .header-content p {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .nav-container {
        padding: 0 15px;
        flex-direction: column;
        height: auto;
        gap: 15px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .nav-menu {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 8px;
    }

    .nav-link {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 18px;
        height: 40px;
        min-width: 100px;
    }
    
    .lang-dropdown-btn {
        height: 40px;
        min-width: 80px;
    }

    .language-selector {
        gap: 6px;
        margin-bottom: 12px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 15px;
    }

    .instructions {
        font-size: 1.1em;
        margin-bottom: 25px;
        line-height: 1.5;
        min-height: auto;
    }

    /* 移动端图片游戏优化 */
    .game-area {
        margin-bottom: 25px;
        padding: 5px 0;
    }
    
    .image-container {
        margin-bottom: 20px;
        border-radius: 15px;
        max-width: 100%;
    }
    
    #game-image {
        max-width: 100%;
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 15px;
    }
    
    .click-overlay {
        border-radius: 15px;
        /* 增加移动端点击区域 */
        padding: 10px;
        margin: -10px;
    }
    
    .progress-container {
        padding: 20px;
        border-radius: 15px;
        margin-top: 20px;
    }

    .progress-label {
        margin-bottom: 12px;
        font-size: 0.95em;
    }

    #progress-text {
        font-size: 1.1em;
    }

    .progress-bar {
        height: 18px;
        border-radius: 9px;
        margin-bottom: 15px;
    }

    .progress-fill {
        border-radius: 9px;
    }

    .progress-info {
        font-size: 0.9em;
    }

    .success-message {
        padding: 25px;
        border-radius: 15px;
        margin-top: 20px;
    }

    .success-message h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .success-message p {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .success-message button {
        padding: 12px 24px;
        font-size: 1em;
        border-radius: 20px;
        /* 增加移动端按钮点击区域 */
        min-height: 44px;
        min-width: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }

    .footer-section p,
    .footer-section li {
        font-size: 1em;
        line-height: 1.6;
    }

    .site-header {
        padding: 25px 0;
    }

    .site-footer {
        padding: 40px 0 25px 0;
    }

    .main-content {
        padding: 30px 10px;
    }
}

/* 小屏幕手机优化 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 5px auto;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .header-content h2 {
        font-size: 1.4em;
    }

    .header-content p {
        font-size: 1em;
    }

    .nav-container {
        padding: 0 10px;
        gap: 10px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .instructions {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .game-area {
        margin-bottom: 20px;
        padding: 5px 0;
    }
    
    #game-image {
        height: 250px;
    }
    
    .progress-container {
        padding: 15px;
        margin-top: 15px;
    }
    
    .success-message {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .success-message h2 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    
    .success-message p {
        font-size: 0.9em;
        margin-bottom: 12px;
    }
    
    .success-message button {
        padding: 10px 20px;
        font-size: 0.9em;
        border-radius: 18px;
        min-width: 100px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-container {
        flex-direction: row;
        height: 60px;
        gap: 20px;
    }

    .nav-menu {
        flex-direction: row;
        gap: 10px;
    }

    #game-image {
        height: 200px;
        max-width: 300px;
    }

    .container {
        padding: 15px;
    }

    .main-content {
        padding: 20px 10px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .lang-btn,
    .success-message button {
        /* 增加触摸目标大小 */
        min-height: 44px;
        padding: 12px 16px;
    }

    .click-overlay {
        /* 移动端点击反馈 */
        -webkit-tap-highlight-color: rgba(173, 216, 230, 0.3);
    }

    #game-image {
        /* 防止移动端图片选择 */
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        /* 防止移动端拖拽 */
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
    }

    /* 移动端按钮触摸优化 */
    button,
    .nav-link,
    .lang-btn {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
        cursor: pointer;
    }

    /* 移动端输入优化 */
    input,
    select,
    textarea {
        font-size: 16px;
        /* 防止iOS缩放 */
    }
    
    /* 移动端目标圆圈触摸优化 */
    .target-circle {
        /* 增加触摸区域 */
        min-width: 40px;
        min-height: 40px;
        /* 触摸反馈 */
        -webkit-tap-highlight-color: transparent;
    }
}

/* 移动端专用样式 */
@media screen and (max-width: 768px) {
    /* 游戏区域触摸优化 */
    .game-area {
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
    }

    /* 图片容器触摸优化 */
    .image-container {
        touch-action: manipulation;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* 进度条在移动端的优化 */
    .progress-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* 移动端字体渲染优化 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* 小屏幕上的目标圆圈优化 */
    .target-circle {
        transition: all 0.3s ease;
        filter: drop-shadow(0 0 10px rgba(100, 200, 255, 0.6));
    }
    
    .target-circle::before {
        content: '';
        position: absolute;
        top: 15%;
        left: 20%;
        width: 30%;
        height: 30%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
    
    .target-circle::after {
        content: '';
        position: absolute;
        top: 60%;
        right: 25%;
        width: 15%;
        height: 15%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }
}

/* Desktop design optimization complete */
/* Games 
Showcase Section */
.games-showcase {
    margin: 60px 0;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showcase-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.game-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.game-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

.game-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.game-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
}

/* 添加动画关键帧定义 */
@keyframes bubblePulse {
     0% {
         transform: scale(1);
         opacity: 0.9;
         box-shadow: 0 0 30px rgba(100, 200, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
     }
     50% {
         transform: scale(1.15);
         opacity: 1;
         box-shadow: 0 0 50px rgba(100, 200, 255, 1), inset 0 0 30px rgba(255, 255, 255, 0.5);
     }
     100% {
         transform: scale(1);
         opacity: 0.9;
         box-shadow: 0 0 30px rgba(100, 200, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.3);
     }
}

@keyframes successRipple {
    to {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

@keyframes missRipple {
    to {
        width: 60px;
        height: 60px;
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* 基础目标圆圈样式 */
.target-circle {
     position: absolute;
     pointer-events: none;
     z-index: 10;
     transition: all 0.3s ease;
     filter: drop-shadow(0 0 15px rgba(100, 200, 255, 0.6));
     will-change: transform;
     transform: translateZ(0);
     backface-visibility: hidden;
 }
 
 .target-circle::before {
     content: '';
     position: absolute;
     top: 15%;
     left: 20%;
     width: 30%;
     height: 30%;
     background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
     border-radius: 50%;
     pointer-events: none;
 }
 
 .target-circle::after {
     content: '';
     position: absolute;
     top: 60%;
     right: 25%;
     width: 15%;
     height: 15%;
     background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
     border-radius: 50%;
     pointer-events: none;
 }

/* 响应式设计 - 平板和手机 */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-title {
        font-size: 2rem;
    }
    
    .game-card {
        padding: 25px;
    }
    
    .game-icon {
        font-size: 3rem;
    }
    
    .success-message {
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    .success-message h2 {
        font-size: 1.6em;
        margin-bottom: 12px;
    }
    
    .success-message p {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .success-message button {
        padding: 12px 24px;
        font-size: 1em;
        border-radius: 20px;
        min-width: 120px;
        min-height: 44px;
    }
}
