/* Main Styles for Retro Game Portal */

/* Custom Variables */
:root {
    --retro-dark: #1a0d2e;
    --retro-accent: #9d4edd;
    --retro-secondary: #c77dff;
    --retro-background: #0f0515;
    --retro-neon: #e0aaff;
    --retro-pink: #ff71ce;
    --retro-cyan: #7209b7;
    --retro-purple: #b967ff;
    --retro-light-purple: #e0aaff;
    --retro-border: #c77dff;
    --retro-text-shadow: #7209b7;
}

/* Global Styles */
body {
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background-color: var(--retro-background);
    scroll-behavior: smooth;
    color: var(--retro-light-purple);
}

/* Text Border Styles for Purple Theme */
h1, h2, h3, h4, h5, h6 {
    border: 2px solid var(--retro-border);
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.1));
    border-radius: 8px;
    text-shadow: 2px 2px 4px var(--retro-text-shadow);
    box-shadow: 0 0 15px rgba(199, 125, 255, 0.3);
    margin-bottom: 20px;
    color: var(--retro-light-purple);
}

p, .lead {
    border: 1px solid var(--retro-secondary);
    padding: 12px 16px;
    background: rgba(26, 13, 46, 0.3);
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(199, 125, 255, 0.2);
    color: var(--retro-light-purple);
}

.section-content p {
    border: 1px solid var(--retro-border);
    padding: 12px 16px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 6px;
    margin-bottom: 15px;
    color: var(--retro-light-purple);
}

.feature-content p {
    border: 1px solid var(--retro-secondary);
    padding: 10px 14px;
    background: rgba(199, 125, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 12px;
    color: var(--retro-light-purple);
}

.feature-intro {
    border: 2px solid var(--retro-accent);
    padding: 16px 20px;
    background: rgba(157, 78, 221, 0.15);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    color: var(--retro-light-purple);
}

/* 图片中显示的头部区域样式开始 */
/* Retro Header Styles - 控制整个黑色背景和网格线 */
.retro-header {
    background: var(--retro-dark);
    border-bottom: 4px solid var(--retro-accent);
    position: relative;
    overflow: hidden;
}

.retro-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Logo Container - 控制整个LOGO容器的布局 */
.logo-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

/* Arcade Cabinet Logo - 控制街机柜子的样式 */
.arcade-cabinet {
    width: 120px;
    height: 100px;
    background-color: #333;
    border-radius: 8px 8px 0 0;
    position: relative;
    margin-bottom: 5px;
    border: 2px solid #555;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.7), 
                0 0 20px rgba(255, 107, 53, 0.5), 
                0 0 30px rgba(255, 107, 53, 0.3);
}

.arcade-cabinet::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 10px;
    background-color: #222;
    bottom: -10px;
    left: -10px;
    border-radius: 0 0 8px 8px;
}

/* 街机屏幕样式 - 显示绿色RETRO文字的黑色屏幕 */
.screen {
    width: 90px;
    height: 60px;
    background-color: #000;
    border: 2px solid #444;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* RETRO文字样式 - 控制绿色闪烁的RETRO文字 */
.pixel-text {
    color: var(--retro-neon);
    font-size: 12px;
    letter-spacing: 1px;
    animation: flicker 2s infinite;
}

/* 街机按钮和摇杆样式 */
.controls {
    position: absolute;
    bottom: 10px;
    width: 80%;
    left: 10%;
    display: flex;
    justify-content: space-between;
}

.joystick {
    width: 15px;
    height: 15px;
    background-color: var(--retro-accent);
    border-radius: 50%;
    position: relative;
}

.joystick::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #000;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.buttons {
    display: flex;
    gap: 5px;
}

.buttons::before, .buttons::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--retro-secondary);
    border-radius: 50%;
}

/* 网站标题样式 - 控制橙色像素风格的"Retro Game Portal"文字 */
.site-title {
    color: var(--retro-accent);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-top: 15px;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    letter-spacing: 2px;
}
/* 图片中显示的头部区域样式结束 */

/* Retro Navigation */
.retro-nav .nav-link {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 8px 16px;
    position: relative;
    transition: color 0.3s ease;
}

.retro-nav .nav-link:hover,
.retro-nav .nav-link.active {
    color: var(--retro-accent);
}

.retro-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--retro-accent);
    transition: all 0.3s ease;
}

.retro-nav .nav-link:hover::after,
.retro-nav .nav-link.active::after {
    width: 80%;
    left: 10%;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.language-btn {
    background-color: transparent;
    border: 2px solid var(--retro-accent);
    border-radius: 4px;
    color: #fff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.7rem;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-btn:hover {
    background-color: var(--retro-accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.7);
}

.language-btn.active {
    background-color: var(--retro-accent);
    color: #000;
}

.language-btn:not(:last-child) {
    margin-right: 5px;
}

/* Flicker Animation */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.5;
    }
}

/* Custom Hero Section */
.hero-section {    background: linear-gradient(135deg, var(--retro-dark) 0%, var(--retro-cyan) 100%);    padding: 5rem 0;    position: relative;    overflow: hidden;}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.15) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

/* Grid Movement Animation */
@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(30px);
    }
}

/* Game Console in Hero Section */
.game-console-wrapper {
    max-width: 600px;
    margin: 0 auto;
    perspective: 1000px;
}

.game-console {
    background: #333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: rotateX(5deg);
    border: 4px solid #222;
}

.console-screen {
    background: #000;
    border-radius: 10px;
    height: 250px;
    margin-bottom: 20px;
    border: 3px solid #444;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-screen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.screen-content {
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.glitch-text {
    color: var(--retro-neon);
    font-size: 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--retro-cyan);
    z-index: -1;
    animation: glitch-anim 3s infinite;
}

.glitch-text::after {
    color: var(--retro-pink);
    z-index: -2;
    animation: glitch-anim2 2.3s infinite;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-anim2 {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(3px, -3px);
    }
    40% {
        transform: translate(3px, 3px);
    }
    60% {
        transform: translate(-3px, -3px);
    }
    80% {
        transform: translate(-3px, 3px);
    }
    100% {
        transform: translate(0);
    }
}

.blink-text {
    color: #fff;
    font-size: 0.8rem;
    animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.btn-start {
    background-color: var(--retro-neon);
    color: #000;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.7rem;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
    transition: all 0.3s ease;
}

.btn-start:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(57, 255, 20, 1);
}

.btn-start:active {
    transform: scale(0.95);
}

.console-controls {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
}

.d-pad {
    width: 80px;
    height: 80px;
    background-color: #222;
    border-radius: 50%;
    position: relative;
    transition: transform 0.1s ease;
}

.d-pad:hover {
    cursor: pointer;
}

.d-pad:active {
    transform: scale(0.95);
}

.d-pad::before,
.d-pad::after {
    content: '';
    position: absolute;
    background-color: #444;
}

.d-pad::before {
    width: 60%;
    height: 30%;
    top: 35%;
    left: 20%;
}

.d-pad::after {
    width: 30%;
    height: 60%;
    top: 20%;
    left: 35%;
}

.buttons-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.console-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
    transition: transform 0.1s ease;
}

.console-btn:hover {
    cursor: pointer;
}

.console-btn:active {
    transform: scale(0.9);
}

.a-btn {
    background-color: var(--retro-accent);
}

.b-btn {
    background-color: var(--retro-secondary);
}

/* Pure CSS Hover Effects for Buttons */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 100%;
}

.btn:active {
    transform: scale(0.95);
}

/* Game Area Section Styles */
.game-area {
    background-color: var(--retro-dark);
    padding: 40px 0;
    color: #fff;
}

/* Main Game Frame Container */
.game-frame-container {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #444;
}

.game-frame-header {
    background-color: #333;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--retro-accent);
}

.game-title {
    margin: 0;
    font-size: 1.2rem;
    color: var(--retro-accent);
}

.game-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.control-btn:hover {
    background-color: var(--retro-secondary);
}

.game-frame {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    background-color: #000;
    overflow: hidden;
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#game-display {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
}

.game-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #111;
}

.game-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.play-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.play-btn {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    font-size: 2.5rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.play-overlay:hover .play-btn {
    transform: scale(1.1);
}

.game-frame-footer {
    padding: 10px 15px;
    background-color: #222;
    font-size: 0.7rem;
    border-top: 1px solid #444;
}

.game-description {
    opacity: 0.8;
}

/* Right Side Game Navigation */
.side-navigation {
    background-color: #222;
    border-radius: 8px;
    padding: 10px;
    height: 100%;
    border: 2px solid #444;
    display: flex;
    flex-direction: column;
}

.side-navigation h4 {
    color: var(--retro-secondary);
    font-size: 1rem;
    margin-bottom: 5px;
    position: relative;
    display: inline-block;
}

.side-navigation h4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--retro-secondary);
    bottom: -5px;
    left: 25%;
}

.side-navigation .row {
    margin: 0;
    height: 100%;
}

.side-navigation .col-6 {
    padding: 3px;
}

/* 确保右侧导航的游戏项填充可用空间 */
.h-90 {
    height: 90%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.nav-game-item {
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    height: 140px; /* 增加高度到140px，适应更大的图片 */
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.nav-game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--retro-accent);
}

.nav-game-item .game-placeholder-box {
    flex-grow: 1;
    height: auto;
    min-height: 80px;
}

.nav-game-title {
    font-size: 0.6rem;
    text-align: center;
    margin: 5px 0;
    color: #fff;
    padding: 0 5px;
    line-height: 1.2;
}

/* Bottom Game Navigation */
.bottom-navigation {
    background-color: #222;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #444;
    margin-top: 15px;
}

.bottom-navigation h4 {
    color: var(--retro-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.bottom-navigation h4::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 2px;
    background-color: var(--retro-secondary);
    bottom: -5px;
    left: 25%;
}

.bottom-navigation .row {
    display: flex;
    margin-right: -5px;
    margin-left: -5px;
}

.bottom-navigation .col {
    padding-right: 5px;
    padding-left: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-game-item-horizontal {
    height: 80px;
    width: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.game-nav-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 改为contain确保图片完全显示 */
    display: block;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1); /* 添加背景色填充空白区域 */
}

.game-side-image {
    width: 100%;
    height: 110px; /* 增加高度到110px，为图片提供更多显示空间 */
    object-fit: contain; /* 改为contain确保图片完全显示 */
    display: block;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: rgba(0, 0, 0, 0.1); /* 添加背景色填充空白区域 */
}

.nav-game-item-horizontal:hover {
    transform: translateY(-5px);
    border-color: var(--retro-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 重置H2游戏标题的样式，移除默认的边框和背景 */
h2.nav-game-title {
    border: none;
    padding: 5px;
    background: none;
    border-radius: 0;
    text-shadow: none;
    box-shadow: none;
    margin: 5px 0;
    font-size: 0.6rem;
    color: #fff;
}

/* 媒体查询调整 */
@media (max-width: 992px) {
    .nav-game-item {
        height: 130px; /* 调整响应式高度 */
        margin-bottom: 10px;
    }
    
    .side-navigation {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .site-title {
        font-size: 1.4rem;
    }
    
    .arcade-cabinet {
        width: 90px;
        height: 80px;
    }
    
    .screen {
        width: 70px;
        height: 45px;
    }
    
    .pixel-text {
        font-size: 9px;
    }
    
    .retro-nav .nav-link {
        font-size: 0.6rem;
        padding: 6px 10px;
    }
    
    .console-screen {
        height: 180px;
    }
    
    .glitch-text {
        font-size: 1.2rem;
    }
    
    .blink-text {
        font-size: 0.7rem;
    }
    
    .d-pad {
        width: 35px;
        height: 35px;
    }
    
    .console-btn {
        width: 22px;
        height: 22px;
    }
    
    .game-frame {
        height: 250px;
    }
    
    .game-title {
        font-size: 1rem;
    }
    
    .play-btn {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }
    
    .game-frame-footer {
        padding: 8px;
    }
    
    .nav-game-title {
        font-size: 0.5rem;
    }
    
    .nav-game-item-horizontal {
        height: 60px;
    }
    
    .nav-game-item {
        height: 110px; /* 移动设备上的高度 */
    }
    
    .game-side-image {
        height: 90px; /* 移动设备上图片高度 */
    }
    
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-btn {
        font-size: 0.6rem;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .nav-game-item {
        height: 100px; /* 小屏幕设备上的高度 */
    }
    
    .bottom-navigation .nav-game-title {
        font-size: 0.4rem;
    }
    
    .game-side-image {
        height: 80px; /* 小屏幕设备上图片高度 */
    }
}

/* Create a 5-column layout */
.col-md-15 {
    width: 20%;
    float: left;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 992px) {
    .col-md-15 {
        width: 20%;
    }
}

@media (max-width: 768px) {
    .col-md-15 {
        width: 20%;
    }
}

@media (max-width: 480px) {
    .col-md-15 {
        width: 20%;
    }
}

/* Game Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    animation: cardAppear 0.5s ease-in-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.col-md-4:nth-child(1) .card {
    animation-delay: 0s;
}

.col-md-4:nth-child(2) .card {
    animation-delay: 0.15s;
}

.col-md-4:nth-child(3) .card {
    animation-delay: 0.3s;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* SEO 内容区域样式 */
.seo-section {
    padding: 60px 0;
}

.section-title {
    color: var(--retro-accent);
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--retro-accent);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero 部分样式 */
#seo-hero {
    background-color: var(--retro-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

#seo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

#seo-hero .container {
    position: relative;
    z-index: 2;
}

#seo-hero .lead {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--retro-accent);
}

#seo-hero p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.hero-image-container {
    max-width: 100%;
    overflow: hidden;
}

.game-frame-pixel {
    border: 5px solid #333;
    border-radius: 5px;
    padding: 3px;
    background-color: #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.tekken-hero-image {
    width: 100%;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.tekken-hero-image::after {
    content: 'TEKKEN 3';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: var(--retro-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

/* 当容器内有img标签时的样式（用于主页面） */
.tekken-hero-image .hero-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

/* 为tekken-3页面添加文字覆盖（只在没有img时显示） */
.tekken-hero-image::after {
    content: 'TEKKEN 3';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: var(--retro-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    z-index: 1;
}

/* 当有img标签时，隐藏文字覆盖 */
.tekken-hero-image:has(.hero-main-image)::after {
    display: none;
}

/* 备用方案：通过JavaScript添加类名来控制 */
.tekken-hero-image.has-image::after {
    display: none;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.play-button-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.play-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 53, 0.8);
    border-radius: 50%;
    font-size: 2.5rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.play-button-overlay:hover .play-icon {
    transform: scale(1.1);
}

.game-info-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 5px;
}

.game-info-badge .badge {
    padding: 5px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .seo-section {
        padding: 40px 0;
    }
    
    #seo-hero .lead {
        font-size: 1.1rem;
    }
    
    .play-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .tekken-hero-image {
        height: 250px; /* 移动设备上减小高度 */
    }
}

/* Feature 部分样式 */
#seo-feature {
    background-color: var(--retro-background);
    position: relative;
}

/* How To 部分样式 */
#seo-how-to {
    background: linear-gradient(135deg, var(--retro-dark) 0%, rgba(157, 78, 221, 0.1) 100%);
    position: relative;
}

#seo-how-to::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(199, 125, 255, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(199, 125, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.feature-intro {
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.feature-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.1));
    border: 1px solid var(--retro-border);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(199, 125, 255, 0.2);
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding: 25px;
    display: flex;
    flex-direction: row;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(199, 125, 255, 0.3);
}

.feature-icon {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 20px;
}

.icon-box {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    max-width: 220px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.feature-content {
    flex: 0 0 50%;
}

.feature-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.feature-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .feature-card {
        flex-direction: column;
    }
    
    .feature-icon {
        flex: 0 0 auto;
        padding-right: 0;
        padding-bottom: 20px;
        width: 100%;
    }
    
    .icon-box {
        margin: 0 auto;
        max-width: 180px;
    }
    
    .feature-content {
        flex: 0 0 auto;
    }
}

.character-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #e05126 100%);
}

.gameplay-icon {
    background: linear-gradient(135deg, #2e86de 0%, #1a5a9e 100%);
}

.multiplayer-icon {
    background: linear-gradient(135deg, #6c5ce7 0%, #4834b9 100%);
}

.accessibility-icon {
    background: linear-gradient(135deg, #00b894 0%, #008a6d 100%);
}

.icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: inherit;
    opacity: 0.2;
    top: 0;
    left: 0;
    filter: blur(10px);
    z-index: -1;
}

.character-icon::after,
.gameplay-icon::after,
.multiplayer-icon::after,
.accessibility-icon::after {
    display: none; /* 禁用原有的emoji图标 */
}

/* What Is 部分样式 */
.retro-frame {
    border: 10px solid #333;
    border-radius: 8px;
    background-color: #222;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tekken-what-is-graphic {
    background: linear-gradient(135deg, #000000 0%, #2e123d 100%);
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tekken-what-is-graphic::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.game-modes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 80%;
    z-index: 2;
}

.mode-item {
    background-color: rgba(255, 107, 53, 0.9);
    padding: 10px 15px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    background-color: var(--retro-accent);
}

.mode-item:nth-child(even) {
    background-color: rgba(46, 134, 222, 0.9);
}

.mode-item:nth-child(even):hover {
    background-color: var(--retro-secondary);
}

/* How To 部分样式 */
.how-to-intro {
    max-width: 800px;
    margin: 0 auto;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.step-card {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.1));
    border: 1px solid var(--retro-border);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(199, 125, 255, 0.2);
    padding: 25px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(199, 125, 255, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--retro-accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.step-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.step-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 107, 53, 0.1) 50%);
    border-radius: 0 0 0 100px;
}

/* Gaming Methods 部分样式 */
.gaming-method {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.1));
    border: 1px solid var(--retro-border);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(199, 125, 255, 0.2);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.method-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    padding-left: 20px;
}

.method-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--retro-accent);
    border-radius: 2px;
}

.gaming-method p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.gaming-method:nth-child(2n) .method-title::before {
    background-color: var(--retro-secondary);
}

.gaming-method:nth-child(3n) .method-title::before {
    background-color: var(--retro-neon);
}

.gaming-method:nth-child(4n) .method-title::before {
    background-color: var(--retro-purple);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .tekken-what-is-graphic {
        min-height: 250px;
    }
    
    .method-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .how-to-intro {
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-content p,
    .gaming-method p {
        font-size: 0.9rem;
    }
    
    .mode-item {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/* FAQ 部分样式 */
#seo-faq {
    background-color: var(--retro-background);
    position: relative;
}

#seo-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(199, 125, 255, 0.1) 1px, transparent 1px),
        linear-gradient(0deg, rgba(199, 125, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(199, 125, 255, 0.1));
    border: 1px solid var(--retro-border);
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(199, 125, 255, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(199, 125, 255, 0.3);
}

.faq-question {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(199, 125, 255, 0.15));
    border-bottom: 1px solid var(--retro-border);
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--retro-light-purple);
    font-weight: bold;
    padding-right: 30px;
    position: relative;
    text-shadow: 1px 1px 2px var(--retro-text-shadow);
}

.faq-question h3::before {
    content: 'Q:';
    color: var(--retro-accent);
    margin-right: 10px;
    font-weight: bold;
}

.faq-answer {
    padding: 20px 25px;
    color: var(--retro-light-purple);
    background: rgba(26, 13, 46, 0.3);
    position: relative;
}

.faq-answer p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--retro-accent);
}

/* 为每个FAQ项添加交替的强调色 */
.faq-item:nth-child(2n) .faq-answer::before {
    background-color: var(--retro-secondary);
}

.faq-item:nth-child(3n) .faq-answer::before {
    background-color: var(--retro-neon);
}

.faq-item:nth-child(4n) .faq-answer::before {
    background-color: var(--retro-purple);
}

.faq-item:nth-child(5n) .faq-answer::before {
    background-color: var(--retro-cyan);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
    
    .faq-question, 
    .faq-answer {
        padding: 15px 20px;
    }
}

/* Logo Link */
.logo-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.03);
}

.logo-link:hover .arcade-cabinet {
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.9), 
                0 0 25px rgba(255, 107, 53, 0.7), 
                0 0 35px rgba(255, 107, 53, 0.5);
}

.logo-link:hover .site-title {
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 15px rgba(255, 107, 53, 0.8);
}

/* 原来的样式已被新样式替代
.tekken-hero-image {
    width: 100%;
    padding-bottom: 75%;
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.tekken-hero-image::after {
    content: 'TEKKEN 3';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    color: var(--retro-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}
*/ 

/* 游戏导航链接样式 */
.game-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.game-link:hover {
    text-decoration: none;
    color: inherit;
}

.game-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* 英雄区域游戏链接样式 */
.hero-game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-game-link:hover {
    text-decoration: none;
    color: inherit;
    transform: scale(1.02);
}

.hero-game-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.hero-game-link:active {
    transform: scale(0.98);
}

/* 确保链接内的图片和标题保持原有样式 */
.game-link .game-side-image {
    width: 100%;
    height: 90px; /* 增加高度从80px到90px */
    object-fit: cover;
    display: block;
    border-radius: 4px;
    margin-bottom: 5px;
}

.game-link .nav-game-title {
    font-size: 0.6rem;
    text-align: center;
    margin: 5px 0;
    color: #fff;
    padding: 0 5px;
    line-height: 1.2;
    border: none;
    background: none;
    border-radius: 0;
    text-shadow: none;
    box-shadow: none;
}

/* 底部导航栏的游戏标题样式 */
.bottom-navigation .nav-game-title {
    font-size: 0.6rem;
    text-align: center;
    margin: 0;
    color: #fff;
    padding: 0 5px;
    line-height: 1.2;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    border-radius: 0;
    text-shadow: none;
    box-shadow: none;
}

/* 底部导航游戏链接样式 */
.bottom-navigation .game-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.bottom-navigation .game-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
}

.bottom-navigation .game-link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.bottom-navigation .game-link .nav-game-title {
    margin-top: 8px;
} 
