/* 灵签网站样式补充 */

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .scroll-container {
        perspective: 800px;
    }
    
    .scroll-front, .scroll-back {
        padding: 1rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .scroll-card {
        height: auto;
    }
}

/* 高级动画效果 */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(157, 41, 50, 0.5); }
    50% { box-shadow: 0 0 20px rgba(157, 41, 50, 0.8); }
    100% { box-shadow: 0 0 5px rgba(157, 41, 50, 0.5); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

.pulse-effect {
    animation: pulse 3s ease-in-out infinite;
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

/* 抽签动画增强 */
@keyframes drawAnimation {
    0% { transform: translateY(0) rotate(0deg); }
    10% { transform: translateY(-10px) rotate(-5deg); }
    20% { transform: translateY(-5px) rotate(5deg); }
    30% { transform: translateY(-15px) rotate(-3deg); }
    40% { transform: translateY(-10px) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(-2deg); }
    60% { transform: translateY(-15px) rotate(2deg); }
    70% { transform: translateY(-25px) rotate(-1deg); }
    80% { transform: translateY(-20px) rotate(1deg); }
    90% { transform: translateY(-30px) rotate(0deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.draw-animation {
    animation: drawAnimation 2s ease-out forwards;
}

/* 深度和层次 */
.card-depth {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-depth:hover {
    transform: translateY(-5px) translateZ(10px);
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 文本效果 */
.text-gradient {
    background: linear-gradient(90deg, #9D2932, #D4A017);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.spin-animation {
    animation: spin 1s linear infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* 色彩过渡效果 */
.color-transition {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 滚动进度指示器 */
.scroll-progress {
    height: 3px;
    background: linear-gradient(to right, #9D2932, #D4A017);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0%;
    transition: width 0.2s ease;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .scroll-card {
        transform: none !important;
    }
}

/* 辅助功能 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .bg-neutral {
        background-color: #f0f0f0;
    }
    
    .text-primary {
        color: #8B0000 !important;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .bg-white {
        background-color: #2a2a2a;
    }
    
    .bg-neutral {
        background-color: #333333;
    }
    
    .text-dark {
        color: #f0f0f0;
    }
    
    .border-gray-300 {
        border-color: #555555;
    }
    
    .text-gray-500,
    .text-gray-600 {
        color: #cccccc;
    }
}