/* 添加到现有CSS中或创建新的样式文件 */
/* 游戏主题色彩背景 */

/* Candy Bubble 主题 */
.theme-candy-bubble {
    background: linear-gradient(135deg, rgba(175, 82, 222, 0.15), rgba(255, 45, 85, 0.15));
}
.theme-candy-bubble .game-container {
    box-shadow: 0 4px 30px rgba(175, 82, 222, 0.2);
}

/* Cat Doctor 主题 */
.theme-cat-doctor {
    background: linear-gradient(135deg, rgba(90, 200, 250, 0.15), rgba(0, 199, 190, 0.15));
}
.theme-cat-doctor .game-container {
    box-shadow: 0 4px 30px rgba(90, 200, 250, 0.2);
}

/* Owl and Rabbit 主题 */
.theme-owl-rabbit {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.15), rgba(0, 122, 255, 0.15));
}
.theme-owl-rabbit .game-container {
    box-shadow: 0 4px 30px rgba(88, 86, 214, 0.2);
}

/* 动态背景效果 */
.animated-bg {
    position: relative;
    overflow: hidden;
}
.animated-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: scale(0.5);
    animation: pulse 15s ease-in-out infinite;
}
@keyframes pulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* 游戏卡片悬浮效果增强 */
.game-card {
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 游戏按钮悬浮效果 */
.play-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.play-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.play-button:hover::after {
    transform: translateX(0);
}

/* 导航链接悬浮效果 */
.nav-link {
    position: relative;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FF2D55, #AF52DE);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.nav-link:hover {
    color: #000;
}
.nav-link:hover::after {
    transform: scaleX(1);
}

/* Apple 风格和女性化设计元素 */

/* 轻量化设计，更符合 Apple 设计理念 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 更加圆润的边角 */
.rounded-2xl {
    border-radius: 1rem;
}

/* 更加柔和的阴影 */
.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 增强背景效果，使内容在负空间中更加清晰 */
.bg-feminine-gradient {
    background: linear-gradient(135deg, 
        rgba(255, 45, 85, 0.05) 0%, 
        rgba(175, 82, 222, 0.05) 30%, 
        rgba(90, 200, 250, 0.05) 70%, 
        rgba(255, 149, 0, 0.05) 100%);
}

/* 修改装饰性背景元素 - 移除 overflow: hidden */
.bg-decorative {
    position: relative;
    z-index: 0;
}

/* 为了保持装饰元素可见，但不影响滚动，使用固定定位 */
.bg-decorative::before,
.bg-decorative::after {
    position: fixed;
    content: '';
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.bg-decorative::before {
    background: radial-gradient(circle, rgba(255, 45, 85, 0.07) 0%, rgba(255, 45, 85, 0) 70%);
    top: 10%;
    left: 5%;
}

.bg-decorative::after {
    background: radial-gradient(circle, rgba(0, 122, 255, 0.07) 0%, rgba(0, 122, 255, 0) 70%);
    bottom: 5%;
    right: 5%;
    width: 400px;
    height: 400px;
}

/* 优化标题文字在负空间上的显示 */
h2 {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 圆形装饰元素 */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 45, 85, 0.2), rgba(175, 82, 222, 0.2));
    filter: blur(40px);
    z-index: -1;
}

/* 自定义按钮样式 */
.apple-button {
    background-color: rgba(0, 122, 255, 0.9);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.apple-button:hover {
    background-color: rgba(0, 122, 255, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* 图片缩放效果优化 */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* 轻盈标签 */
.badge-light {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: white;
    display: inline-block;
}

/* 全屏按钮 */
.fullscreen-button {
    transition: all 0.3s ease;
    opacity: 0;
}
.game-iframe-container:hover .fullscreen-button {
    opacity: 1;
}

/* 游戏卡片额外样式 */
.game-card img {
    opacity: 1 !important;
    visibility: visible !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* 社交图标悬浮效果 */
.social-icon {
    transition: transform 0.2s ease;
}
.social-icon:hover {
    transform: scale(1.2);
}

/* 全局过渡效果 */
.transition-300 {
    transition: all 0.3s ease;
}

/* Apple风格圆角设置 */
.apple-radius {
    border-radius: 0.85rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game-card h3 {
        font-size: 1.1rem;
    }
    .game-card p {
        font-size: 0.8rem;
    }
    .game-iframe-container {
        padding-top: 75%; /* 移动端调整比例 */
    }
}

/* 首页特别样式 */
.welcome-text {
    background: linear-gradient(90deg, #FF2D55, #AF52DE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 游戏卡片动画效果 */
.game-card {
    opacity: 0;
    transform: translateY(20px);
}

.game-card.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section styles */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.bg-gradient-text {
    background: linear-gradient(90deg, #FF2D55, #AF52DE);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Enhanced game categories */
.category-tag {
    transition: all 0.3s ease;
}
.category-tag:hover {
    transform: translateY(-2px);
}

/* Animation for the hero text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

/* 顶部导航毛玻璃效果增强 */
.glass-nav {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 增强的 Hero 部分 */
.hero-gradient-bg {
    background: linear-gradient(135deg, 
        rgba(255, 45, 85, 0.05) 0%, 
        rgba(175, 82, 222, 0.05) 33%, 
        rgba(0, 122, 255, 0.05) 66%, 
        rgba(255, 149, 0, 0.05) 100%
    );
}

/* 浮动元素动画 */
.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* 优化游戏卡片标签样式 */
.badge {
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
}

.game-card:hover .badge {
    background-opacity: 0.2;
}

/* 滚动隐藏导航栏 */
.scroll-up {
    transform: translateY(0);
}

.scroll-down {
    transform: translateY(-100%);
}

/* 确保其他现有样式保留 */
/* ... 现有样式 ... */

/* 游戏卡片图片缩放效果 */
.game-card .relative {
    overflow: hidden;
}

.game-card img {
    transition: transform 0.6s ease;
}

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

/* 卡片内容区域的一致间距 */
.game-card .p-4 {
    min-height: 5rem;
}

/* 确保标题文字大小一致 */
.game-card h3 {
    transition: color 0.3s ease;
    line-height: 1.3;
}

.game-card:hover h3 {
    color: #007AFF;
}

/* 优化游戏卡片 */

/* 游戏 iframe 容器样式 */
.game-iframe-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 游戏卡片动画效果 */
.game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

/* 社交图标动画效果 */
.social-icon {
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* 优化游戏卡片 */

/* 网站标题样式 */
.site-title {
    color: #333;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Discover Relaxing Games 部分样式 */
.discover-section {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.1), rgba(175, 82, 222, 0.1));
    padding: 2rem 0;
}

.discover-title {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.discover-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* About RelaxGames 部分样式 */
.about-section {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(90, 200, 250, 0.05));
    padding: 3rem 0;
}

.about-title {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-content {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Footer 样式 */
footer {
    background: #f8f9fa;
    padding: 2rem 0;
    color: #666;
}

.footer-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #007AFF;
} 