/* NOOK 官网样式 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #FFCA2C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6b328;
}

/* 容器 */
.container {
    max-width: 1200px;
}

/* 功能卡片 */
.feature-card {
    @apply bg-gray-800/50 backdrop-blur-sm rounded-2xl p-8 border border-gray-700/50 hover:border-nook-yellow/30 transition-all duration-300;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 202, 44, 0.1);
}

.feature-icon {
    @apply w-16 h-16 bg-nook-yellow text-nook-dark rounded-2xl flex items-center justify-center mb-6 mx-auto;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-tag {
    @apply inline-block bg-nook-yellow/20 text-nook-yellow text-xs font-medium px-3 py-1 rounded-full;
}

/* 体验卡片 */
.experience-card {
    @apply p-8 rounded-2xl bg-nook-yellow/5 border border-nook-yellow/20 hover:bg-nook-yellow/10 transition-all duration-300;
    transform: translateY(0);
}

.experience-card:hover {
    transform: translateY(-8px);
}

.experience-icon {
    @apply w-20 h-20 mx-auto mb-6;
}

/* 下载卡片 */
.download-card {
    @apply bg-gray-800/70 rounded-2xl p-8 border border-gray-700/50 hover:border-nook-yellow/30 transition-all duration-300;
    transform: translateY(0);
}

.download-card:hover {
    transform: translateY(-8px);
}

/* 二维码图片样式 */
.download-card img {
    transition: transform 0.3s ease;
}

.download-card:hover img {
    transform: scale(1.05);
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 导航栏样式 */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: #FFCA2C;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* 移动端菜单 */
.mobile-menu {
    @apply fixed inset-0 bg-nook-dark/95 backdrop-blur-md z-40 flex flex-col items-center justify-center space-y-8 text-xl;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* 按钮效果 */
.btn-gradient {
    @apply bg-nook-yellow text-nook-dark;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 202, 44, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .feature-card {
        @apply p-6;
    }
    
    .experience-card {
        @apply p-6;
    }
    
    .download-card {
        @apply p-6;
    }
    
    .qr-placeholder {
        @apply w-32 h-32;
    }
}

/* 文字选择颜色 */
::selection {
    background: #FFCA2C;
    color: #1A1A1A;
}

/* 焦点样式 */
button:focus,
a:focus {
    outline: 2px solid #FFCA2C;
    outline-offset: 2px;
}

/* 加载动画 */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* 背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255, 202, 44, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 202, 44, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}
