/* Move non-critical styles here */
:root {
    --apple-red: #ff3b30;
    --apple-orange: #ff9500;
    --apple-yellow: #ffcc00;
    --apple-green: #4cd964;
    --apple-blue: #007aff;
    --apple-purple: #5856d6;
    --apple-pink: #ff2d55;
    --apple-gray: #8e8e93;
    --apple-dark: #1c1c1e;
}

/* Battle theme styles */
.battle-theme {
    background: url('/images/battlefield-bg.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.battle-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
}

.battle-theme > * {
    position: relative;
    z-index: 2;
}

/* Add all other non-critical styles here */
/* ... */

/* playgame666.online - Additional Site-wide Styles */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Common utility classes */
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

/* Gradient text and backgrounds */
.gradient-text {
    background: linear-gradient(90deg, #ff9500, #ff2d55);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gradient-bg {
    background: linear-gradient(90deg, #ff9500, #ff2d55);
}

.gradient-border {
    position: relative;
}

.gradient-border::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff9500, #ff2d55);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(90deg, #ff9500, #ff2d55);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-secondary {
    background: transparent;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 2px solid;
    border-image: linear-gradient(90deg, #ff9500, #ff2d55) 1;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Card styles */
.card {
    background-color: #1a1a1a;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Feature box styles */
.feature-box {
    background-color: #1a1a1a;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff9500, #ff2d55);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Badge styles */
.badge {
    background: linear-gradient(90deg, #ff9500, #ff2d55);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
}

/* Related games section - Redesigned for SEO & UX */
.related-games-section {
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 25, 0.95));
    position: relative;
}

.related-games-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.3), transparent);
}

.related-games-container {
    max-width: 1280px;
    margin: 0 auto;
}

.related-games-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    text-align: center;
}

.related-games-title {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9500, #ff2d55, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.related-games-subtitle {
    color: #b0b0b0;
    font-size: 1.125rem;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Simplified grid layout */
.related-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

/* Simple, clean card design */
.related-game-card {
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(255, 149, 0, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.related-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(255, 45, 85, 0.2);
    border-color: rgba(255, 149, 0, 0.4);
}

/* Thumbnail - slightly larger */
.related-game-thumb {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Simple content layout - title only */
.related-game-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-game-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .related-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .related-games-section {
        padding: 3rem 1.25rem 2rem;
    }

    .related-games-title {
        font-size: 1.875rem;
    }

    .related-games-subtitle {
        font-size: 1rem;
    }

    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .related-game-thumb {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .related-games-section {
        padding: 2.5rem 1rem 1.5rem;
    }

    .related-games-title {
        font-size: 1.625rem;
    }

    .related-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-game-thumb {
        height: 100px;
    }

    .related-game-content {
        padding: 0.75rem;
    }

    .related-game-title {
        font-size: 0.9rem;
    }
}

/* Form styles */
.form-input {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    width: 100%;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #ff9500;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff9500, #ff2d55);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff2d55, #ff9500);
}

/* Standard info-card component styles - 通用游戏页面样式 */
.info-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    border: 1px solid rgba(255, 149, 0, 0.15);
    padding: 22px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: #ffbf69;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.info-card li {
    position: relative;
    padding-left: 28px;
    line-height: 1.6;
    color: #d1d5db;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 6px;
    top: 0.5em;
    color: #ff9500;
    font-size: 0.85em;
    line-height: 1;
    display: block;
    width: 14px;
    height: 14px;
    text-align: center;
    margin-top: -7px;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 149, 0, 0.3);
}

/* Responsive adjustments for info-card */
@media (max-width: 768px) {
    .info-card {
        padding: 18px;
    }

    .info-card li {
        padding-left: 30px;
    }

    .info-card li::before {
        left: 7px;
        top: 0.52em;
        font-size: 0.8em;
        width: 12px;
        height: 12px;
        margin-top: -6px;
    }
}

@media (max-width: 480px) {
    .info-card li {
        padding-left: 28px;
    }

    .info-card li::before {
        left: 6px;
        top: 0.5em;
        font-size: 0.75em;
        width: 11px;
        height: 11px;
        margin-top: -5.5px;
    }
}

/* Responsive navigation menu */
@media (max-width: 768px) {
    .mobile-menu-container {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 75%;
        max-width: 300px;
        background-color: #1a1a1a;
        z-index: 50;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu-container.open {
        transform: translateX(0);
    }
    
    .mobile-menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease-in-out;
    }
    
    .mobile-menu-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Blog-specific styles */
.blog-content {
    line-height: 1.8;
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content img {
    border-radius: 0.5rem;
    margin: 2rem 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !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-width: 0;
}

/* Focus styles for better keyboard navigation */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #ff9500;
    outline-offset: 2px;
}

/* Dark mode optimization */
@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #0a0a0a;
        color: #ffffff;
    }
}

/* Unified Footer Styles - 与首页保持一致 */
.footer-links-section {
    padding: 40px 15px 20px;
    background: #111;
    border-top: 1px solid rgba(255, 149, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-column {
    text-align: left;
}

.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff9500;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
}

/* 响应式布局 - 与首页保持一致 */
@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 移动设备优化 */
@media (max-width: 768px) {
    .footer-links-section {
        padding: 2rem 1rem 1.5rem;
        padding-bottom: 6rem; /* 为底部导航留出空间 */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
} 
