body {
    max-width: 660px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    margin: 0 auto;
    padding: 0;
    background: #f8f0ff;
    color: #333;
    line-height: 1.6;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}


.yudcd-navbar {
    max-width: 660px;
    display: flex;
    background: #ff6b8b;
    color: #FFFFFF;
    height: 80px;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.4);
    border-bottom: 3px solid #ff477e;
    position: relative;
}



#nav-open {
    display: block;
    position: relative;   
    height: 3vh;
}

#nav-close {
    display: none;
    position: relative;   
    height: 4vh;
}



.yudcd-nav-logo img {
    height: 4vh;
    display: block;
}

.yudcd-navbar {
    display: flex;
    background: #ff6b8b;
    color: #FFFFFF;
    align-items: center;
    justify-content: space-between;
    padding: 0px 20px;
    position: relative;
}

.yudcd-menu {
    display: flex;
    width: 30%;
    flex-direction: column;
    gap: 35px;
    background-color: #fff;
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 6vh;
    right: 0px;
    padding: 35px 1rem;
    z-index: 10;
    margin: 0;
    list-style-type: none;
    display: none;
}

.yudcd-menu li {
    position: relative;

}

.yudcd-menu li a:hover {
    color: #ccc;
}

.yudcd-menu.open {
    display: flex;
    flex-direction: column;
}

.yudcd-menu.open #nav-open {
    display: none;
}

.yudcd-menu.open #nav-close {
    display: block;
}

.yudcd-menu li a {
    font-size: 1rem;
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.yudcd-menu li a:hover {
    color: #2575fc;
    text-shadow: 0 2px 8px rgba(37, 117, 252, 0.3);
}

#yudcd-menu {
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0.3;
        width: 0%;
    }

    100% {
        opacity: 1;
        width: 30%;
    }
}

.yudcd-game-item {
    border-radius: 24px;
    position: relative;
    background: #4ecdc4;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(78, 205, 196, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #45b7aa;
    overflow: hidden;
    transform: rotate(-1deg);
}

.yudcd-game-item:nth-child(even) {
    transform: rotate(1deg);
}

.yudcd-game-item:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.05);
}

.yudcd-game-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #45b7aa;
}

.yudcd-game-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(78, 205, 196, 0.5),
        0 0 0 3px rgba(69, 183, 170, 0.4);
    background: #45b7aa;
}
.yudcd-game-item a {
    
    text-decoration: none;
}

.yudcd-game-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 
        0px 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: saturate(1.1) brightness(1.05);
    position: relative;
    border: 4px solid #fff;
    transform: rotate(2deg);
}

.yudcd-game-item:nth-child(even) .yudcd-game-cover img {
    transform: rotate(-2deg);
}

.yudcd-game-cover img:hover {
    transform: rotate(0deg) scale(1.08);
    border-radius: 20px;
    box-shadow: 
        0px 15px 40px rgba(255, 235, 59, 0.5),
        0 0 0 3px rgba(255, 213, 0, 0.4);
    filter: saturate(1.2) brightness(1.1);
}


.yudcd-game-cover-recommend img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.yudcd-game-item h3 {
    color: #333;
    margin: 10px 0px 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.yudcd-game-item p {
    color: #333;
    margin: 0px;
    font-size: 1rem;
}

.yudcd-game-info {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
    padding: 10px 5px;
}

.yudcd-game-info p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 4.5em;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.yudcd-game-info p:last-child { 
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    margin-top: 5px;
}

.common-game-right {
    display: flex;
    width: 20%;
    background: #ffeb3b;
    border-radius: 8px;
    right: 0px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4);
    border: 2px solid #ffd500;
}

.common-game-right img {
    /* width: 60px; */
    /* height: 20px; */
}

.yudcd-recomed-div {
    margin: 0px 10px;
    border-radius: 5px;
    padding: 10px 0px;

}

.yudcd-detail-recomed-div {
    margin: 10px 20px;
    border-radius: 5px;
    padding: 10px 0px;

}

.yudcd-common-recommend-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background: #9c27b0;
    border-radius: 16px 16px 0 0;
    box-shadow: 
        0 6px 25px rgba(156, 39, 176, 0.4);
    position: relative;
    border-bottom: 3px solid #7b1fa2;
}

.yudcd-common-recommend-title img {
    position: absolute;
    right: 20px;
}


.yudcd-common-recommend-title p {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.yudcd-common-recommend-title img {
    width: 22px;
    height: 22px;
}

.yudcd-common-recommend-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.yudcd-common-recommend-content-2 {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Two columns layout */
    gap: 0.5rem;
    /* Gap between items */
}

.yudcd-game-big-2 {
    grid-column: span 2;
    grid-row: span 2;
}

.game-big-3 {
    grid-column: span 3;
    grid-row: span 3;
}



footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    text-align: center;
    margin-top: 30px;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.5);
}

.yudcd-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* Space between links */
    margin-bottom: 10px;
}

.yudcd-footer-links a {
    font-size: 0.7em;
    color: 	#FFD700;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.yudcd-footer-links a:hover {
    color: #FFA500;
    text-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
}

.yudcd-footer-links a:hover {
    text-decoration: underline;
}

footer .yudcd-copyright {
    font-size: 0.8em;
    color: 	#FFD700;
    margin: 10px 0px;
    text-shadow: 0 1px 5px rgba(255, 215, 0, 0.2);
}

#back-top,
#back-home {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#flow {
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 30, 63, 0.9) 0%, rgba(45, 45, 79, 0.9) 100%);
    padding: 15px;
    gap: 15px;
    border-radius: 50px;
    box-shadow: 
        0 10px 35px rgba(0, 102, 255, 0.4),
        0 0 0 2px rgba(0, 168, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(0, 168, 255, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

#flow:hover {
    background: linear-gradient(135deg, rgba(40, 40, 80, 0.95) 0%, rgba(60, 60, 100, 0.95) 100%);
    box-shadow: 
        0 15px 50px rgba(0, 168, 255, 0.6),
        0 0 0 3px rgba(0, 255, 255, 0.5);
    transform: translateY(-8px) scale(1.05);
}

#back-top,
#back-home {
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

#back-top:hover,
#back-home:hover {
    transform: scale(1.2);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 255, 255, 0.8));
}

.yudcd-game-detail-title {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 2rem;
    background: linear-gradient(135deg, rgba(30, 30, 63, 0.95) 0%, rgba(45, 45, 79, 0.95) 100%);
    border-radius: 20px;
    box-shadow: 
        0 15px 50px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 20px;
    border: 2px solid rgba(0, 168, 255, 0.4);
    backdrop-filter: blur(15px);
}

.yudcd-game-detail-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066ff, #00a8ff, #0097e6);
    border-radius: 20px 20px 0 0;
}

.game-detail-iframe {
    width: 100%;
}

.yudcd-game-detail-img {
    width: 100%;
    position: relative;
}

.yudcd-game-detail-img img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 1 / 0.8;
    display: block;
    box-shadow: 
        0 15px 40px rgba(0, 102, 255, 0.4),
        0 0 0 2px rgba(0, 168, 255, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.yudcd-game-detail-img::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(45deg, rgba(0, 168, 255, 0.3), rgba(0, 255, 255, 0.1));
    border-radius: 20px;
    filter: blur(15px);
    z-index: 0;
    opacity: 0.6;
}

.yudcd-detail-info {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: 20px;
    order: 1;
}

.yudcd-detail-info h2 {
    color: #00a8ff;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 168, 255, 0.4);
    letter-spacing: 0.5px;
}

.yudcd-detail-info p {
    color: #e0e0ff;
    font-size: 1rem;
    margin: 8px 0;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.yudcd-detail-info a {
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: -1;
}

.yudcd-game-instructions {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
    background: linear-gradient(135deg, rgba(30, 30, 63, 0.9) 0%, rgba(45, 45, 79, 0.9) 100%);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 
        0 10px 35px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 168, 255, 0.3);
    backdrop-filter: blur(10px);
}

.yudcd-game-instructions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0066ff, #00a8ff, #0097e6);
    border-radius: 16px 16px 0 0;
}

.yudcd-game-instructions p {
    color: #e0e0ff;
    line-height: 1.6rem;
    font-size: 1rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}



.yudcd-game-gameplay-button {
    display: flex;
    background: linear-gradient(135deg, #0066ff 0%, #00a8ff 50%, #0097e6 100%);
    border-radius: 16px;
    padding: 20px 40px;
    width: fit-content;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 8px 35px rgba(0, 102, 255, 0.6),
        0 0 0 2px rgba(0, 168, 255, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    margin: 30px auto 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yudcd-game-gameplay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.yudcd-game-gameplay-button:hover::before {
    left: 100%;
}

.yudcd-game-gameplay-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 15px 50px rgba(0, 168, 255, 0.8),
        0 0 0 3px rgba(0, 255, 255, 0.6);
    background: linear-gradient(135deg, #00a8ff 0%, #0066ff 50%, #0097e6 100%);
}

.yudcd-game-gameplay-button img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.yudcd-game-gameplay-button:hover img {
    transform: scale(1.1) rotate(5deg);
}

.yudcd-game-gameplay-button p {
    color: #ffffff;
    margin: 0 15px 0 0;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.yudcd-game-iframe {
    /* width: 100%; */
    /* max-width: 560px; */
    /* margin: 1rem 0; */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100vh;
    position: relative;
}
#iframe-menu-btn  {
    margin-top: 20px;
    margin-left: 60px;
    position: absolute;
    height: 40px;
    height: 40px;
}
#iframe-back-btn {
    margin-top: 20px;
    margin-left: 20px ;
    position: absolute;
    height: 50px;
    height: 50px;
}
.yudcd-news-detail{
    color: #000;
    text-align: start;
    padding: 1rem;
    margin-top: 30px;
}
.yudcd-news-detail img{
    width: 100%;
    object-fit: contain;
}

.error-page {

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.error-page h1{
    font-size: 2em;
    color: #2D3436;
}
.error-page p{
    font-size: 1.4em;
    color: #2D3436;
    padding: 1rem;
    
}
.error-page img{
    width: 100%;
    padding: 2rem 1rem;
}

.yudcd-game-mark {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    /* background-color: #000; */
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: -10px;
    left: -10px;
}

.yudcd-game-mark img{
    width: 50px;
    height: 25px;
   
}

.yudcd-game-new {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    /* background-color: #000; */
    height: 4vh;
    position: absolute;
    border-radius: 0px 0px 10px 10px;
    top: 0px;
    left: -10px;
}

.yudcd-game-new img{
    width: 50px;
    height: 50px;
   
}

.yudcd-game-mark p {
    color: #fff;
    font-size: 1rem;
    margin: 0px 10px;
}

#yudcd-game-body {
    margin-top: 30px;
}

.iframe-menu {
    display: flex;
    width: 60%;
    flex-direction: column;
    gap: 35px;
    background-color: #fff;
    position: absolute;
    align-items: start;
    height: 100vh;
    top: 0vh;
    right: 0px;
    z-index: 8;
    margin: 0;
    list-style-type: none;
    display: none;
    padding: 10px 10px;
}

/* 展开菜单时的导航栏样式 */
.iframe-menu.open {
    display: flex;
    flex-direction: column;
}

.iframe-menu li a {
    font-size: 1rem;
    color: #6a11cb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

.iframe-menu li a:hover {
    color: #2575fc;
    text-shadow: 0 2px 8px rgba(37, 117, 252, 0.3);
}

.iframe-list-item a{
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: space-between;
    align-items: center;
  
}

.iframe-list-item a img {
    margin: 0px;
    height: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}

.iframe-list-item a p {
    margin: 0px 20px;
    position: relative;
}

.iframe-list-item-close a{
    display: flex;
    flex-direction: row;
    margin: 0px;
    justify-content: end;
    align-items: center;
  
}

.iframe-list-item-close img {
    margin: 0px;
    height: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    display: block;
}


#iframe-close-btn {
    right: 0px;
    top: 0px;
}

/* 为移动端添加触摸友好的交互效果 */
@media (hover: none) and (pointer: coarse) {
    .yudcd-game-item:active {
        transform: translateY(-5px) scale(0.98);
        box-shadow: 
            0 10px 30px rgba(0, 102, 255, 0.5),
            0 0 0 2px rgba(0, 168, 255, 0.5);
    }
    
    .yudcd-game-cover img:active {
        transform: scale(1.05);
        filter: saturate(1.3) brightness(1.1);
    }
    
    .recommend-item-btn:active {
        transform: translateY(-3px) scale(0.95);
        box-shadow: 0 6px 25px rgba(0, 168, 255, 0.8);
    }
    
    #back-top:active,
    #back-home:active {
        transform: scale(0.9);
    }
}

/* 手指可点击的组件优化 */
.yudcd-game-item,
.recommend-item-btn,
.yudcd-common-recommend-title,
.yudcd-game-gameplay-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yudcd-game-item {
    animation: fadeInUp 0.6s ease forwards;
}

.yudcd-game-item:nth-child(1) { animation-delay: 0.1s; }
.yudcd-game-item:nth-child(2) { animation-delay: 0.2s; }
.yudcd-game-item:nth-child(3) { animation-delay: 0.3s; }
.yudcd-game-item:nth-child(4) { animation-delay: 0.4s; }

/* 响应式设计 - 小屏幕优化 */
@media (max-width: 480px) {
    .yudcd-game-item-div {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .yudcd-recommend-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yudcd-recommend-content-hot {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yudcd-game-detail-title {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #flow {
        bottom: 80px;
        right: 15px;
        padding: 12px;
        gap: 12px;
    }
}

/* 响应式设计 - 中屏幕优化 */
@media (min-width: 481px) and (max-width: 768px) {
    .yudcd-game-item-div {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .yudcd-recommend-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .yudcd-recommend-content-hot {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 优化滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1e4ff;
}

::-webkit-scrollbar-thumb {
    background: #9c27b0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b1fa2;
}

/* 添加3D变换效果提升现代感 */
.yudcd-navbar {
    perspective: 1000px;
}

.yudcd-game-cover img {
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.yudcd-game-cover img:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
}








