/*
Theme Name: 游戏下载站主题
Theme URI: https://example.com/
Description: 基于Tailwind CSS的游戏下载站主题
Version: 1.0.0
Author: Admin
Author URI: https://example.com/
License: GPL2
Text Domain: game-theme
*/

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes pulseSoft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes bounceGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 8px rgba(232, 157, 102, 0.5);
    }
    100% {
        box-shadow: 0 0 24px rgba(232, 157, 102, 0.7);
    }
}

@keyframes modalIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(180deg, #F8F6F9 0%, #FFF8F5 30%, #FFF5EF 60%, #FFFEFB 100%);
    background-attachment: fixed;
}

.hero-gradient {
    background: linear-gradient(160deg, #2B3555 0%, #1e2640 25%, #2B3555 50%, #252d48 70%, #1e2640 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(232, 157, 102, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(232, 157, 102, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(43, 53, 85, 0.15), 0 8px 16px rgba(232, 157, 102, 0.12);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-download {
    background: linear-gradient(135deg, #E89D66 0%, #d4856b 40%, #c4705a 70%, #b05e4a 100%);
    box-shadow: 0 6px 22px rgba(232, 157, 102, 0.45);
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

.btn-download:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(232, 157, 102, 0.6);
    animation: none;
}

.btn-download:active {
    transform: scale(0.95);
    box-shadow: 0 3px 10px rgba(232, 157, 102, 0.5);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-answer.open {
    max-height: 800px;
    opacity: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.faq-icon.open {
    transform: rotate(180deg);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 38, 64, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem 1.8rem 1.5rem;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 24px 60px rgba(43, 53, 85, 0.4);
    text-align: center;
    animation: modalIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.6rem;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #2B3555;
}

.safety-badge {
    background: #FFF8F5;
    border: 2px solid #E89D66;
    border-radius: 0.75rem;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
    font-size: 0.85rem;
    color: #5C3A28;
    margin-top: 0.4rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(43, 53, 85, 0.99);
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 1.3rem;
}

.mobile-menu.active {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-menu,
    .mobile-menu.active {
        display: none !important;
    }
}

.highlight-red {
    color: #D9534F;
    font-weight: 700;
}

.highlight-bg {
    background: #FFF0E8;
    padding: 0.15em 0.4em;
    border-radius: 0.3em;
    font-weight: 700;
}

header.sticky {
    background: rgba(43, 53, 85, 0.96) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 157, 102, 0.2);
}

header.sticky a,
header.sticky nav a {
    color: #e0e4f0 !important;
}

header.sticky nav a:hover {
    color: #E89D66 !important;
}

header.sticky .text-gray-700 {
    color: #e0e4f0 !important;
}

header.sticky span.bg-clip-text {
    color: #E89D66 !important;
    -webkit-text-fill-color: #E89D66 !important;
}

#menu-toggle span {
    transition: all 0.3s ease;
}

#menu-toggle.active #bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: #fff !important;
}

#menu-toggle.active #bar2 {
    opacity: 0;
}

#menu-toggle.active #bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background: #fff !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}
