/* 自定义样式 */

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

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

/* 按钮样式 */
.btn-primary {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 93, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* 输入框焦点效果 */
.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.25);
    border-color: #165DFF;
}

/* 导航栏样式 */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 链接样式 */
a {
    transition: all 0.3s ease;
}

/* 游戏卡片样式 */
.game-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

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

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

/* 文字渐变 */
.text-gradient {
    background: linear-gradient(90deg, #165DFF, #FF7D00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 阴影效果 */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 圆角调整 */
.rounded-custom {
    border-radius: 12px;
}

/* 背景渐变 */
.bg-gradient {
    background: linear-gradient(135deg, #165DFF, #3B82F6);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式字体大小 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #165DFF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0e47d9;
}

/* 底部链接样式 */
.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-link p {
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-link span {
    display: flex;
    align-items: center;
}

.footer-link a {
    color: #888;
    text-decoration: none;
    margin-left: 5px;
}

.footer-link a:hover {
    color: #fff;
}

.footer-link img {
    vertical-align: middle;
    display: inline-block;
}
