/* Anime Rangers X Codes 网站样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #7c4dff;
    --secondary-color: #ff4081;
    --background-color: #f5f5f5;
    --dark-background: #333;
    --card-background: #ffffff;
    --text-color: #333333;
    --light-text: #ffffff;
    --accent-color: #00c853;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), #3949ab);
    color: var(--light-text);
    padding: 30px 0;
    position: relative;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-switcher select {
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
    background-color: rgba(57, 73, 171, 0.8);
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 5;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.language-switcher select:hover {
    background-color: rgba(124, 77, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.language-switcher select:focus {
    outline: 2px solid var(--secondary-color);
    background-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* 导航样式 */
nav {
    background-color: var(--dark-background);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--light-text);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主要内容样式 */
main {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

/* 添加游戏背景 */
main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.15; /* 调整透明度 */
    z-index: -1;
    filter: blur(1px); /* 轻微模糊效果 */
}

.anime-vanguards-page main::before {
    background-image: url('img/goku.jpg');
}

.content-section {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px); /* 内容区块背景模糊效果 */
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 优化内容区文本样式 */
.content-section p {
    line-height: 1.8;
    margin-bottom: 1.2em;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

/* 游戏介绍图片样式 */
.game-intro-img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.game-intro-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.game-intro-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    margin: 25px 0;
}

.game-intro-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(124, 77, 255, 0.3), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-intro-container:hover::after {
    opacity: 1;
}

/* 游戏介绍布局 */
@media (min-width: 768px) {
    .game-intro-section {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }
    
    .game-intro-text {
        flex: 1;
    }
    
    .game-intro-container {
        flex: 1;
    }
}

/* 礼包码列表样式 */
.code-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.code-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(230, 230, 230, 0.8);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.code-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.95);
}

.code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.copy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #6a3dd3;
}

.rewards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.reward-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #f0f8ff;
    border-radius: 20px;
    font-size: 0.9rem;
}

.reward-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.update-time {
    font-size: 0.8rem;
    color: #777;
    text-align: right;
}

/* FAQ样式 */
.faq-section {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s;
    padding: 5px 0;
}

.faq-question:hover {
    color: var(--secondary-color);
}

/* 链接样式优化 */
.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all 0.3s ease;
}

.content-section a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* 页脚链接样式 */
footer a {
    color: var(--light-text);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    padding: 2px 4px;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

footer a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--dark-background);
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }
    
    /* 移动设备下拉菜单样式 */
    .dropdown-menu {
        position: static;
        background-color: rgba(124, 77, 255, 0.1);
        box-shadow: none;
        margin: 10px 0;
        padding: 0;
        border-radius: 4px;
        width: 100%;
        min-width: auto;
        border: none;
        z-index: 10;
    }
    
    .dropdown-menu li a {
        padding: 10px 15px 10px 30px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu li:last-child a {
        border-bottom: none;
    }
    
    .dropdown-menu li a:hover {
        background-color: rgba(124, 77, 255, 0.2);
        border-left: none;
        padding-left: 30px;
    }
    
    /* 下拉箭头样式调整 */
    .dropdown-toggle::after {
        right: 5px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .code-list {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2rem;
    }
    
    /* 移动设备背景优化 */
    main::before {
        background-attachment: scroll;
        opacity: 0.1;
    }
    
    /* 平板设备上的Anime Vanguards页面背景 */
    .anime-vanguards-page main::before {
        background-image: url('img/goku.jpg');
        opacity: 0.15;
        background-position: center;
    }
    
    .content-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .code-card {
        padding: 15px;
    }
    
    .code {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    /* 小屏幕更低透明度以增强可读性 */
    main::before {
        opacity: 0.08;
    }
    
    /* 小屏幕上的Anime Vanguards页面背景 */
    .anime-vanguards-page main::before {
        background-image: url('img/goku.jpg');
        opacity: 0.12;
        background-position: center;
    }
}

/* SVG 菱形图标动画效果 */
@keyframes diamond-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes diamond-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

svg.reward-icon {
    animation: diamond-pulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 2px rgba(124, 77, 255, 0.5));
    transition: all 0.3s ease;
}

svg.reward-icon:hover {
    animation: diamond-rotate 1.5s infinite linear;
    filter: drop-shadow(0 0 4px rgba(124, 77, 255, 0.8));
}

/* 添加更多动态效果 */
polygon {
    transition: all 0.3s ease;
}

svg.reward-icon:hover polygon {
    stroke: white;
    stroke-width: 1;
}

/* 兑换指南图片样式 */
.redeem-guide-img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    cursor: pointer;
}

.redeem-guide-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.redeem-guide-container {
    position: relative;
    overflow: hidden;
    margin: 25px 0;
}

.redeem-guide-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    opacity: 0;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.redeem-guide-container:hover::before {
    opacity: 0.1;
}

/* 图片放大模态框样式 */
.img-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.img-modal.show {
    opacity: 1;
    display: flex;
}

.img-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 5px;
}

.img-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

/* 响应式调整 */
@media (min-width: 768px) {
    .redeem-guide-section {
        display: flex;
        align-items: flex-start;
        gap: 30px;
    }
    
    .redeem-guide-text {
        flex: 1;
    }
    
    .redeem-guide-container {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .redeem-guide-img {
        margin: 15px 0;
    }
}
.language-switcher {
    display: none;
}

/* 返回首页按钮样式 */
.home-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.back-to-home {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: rgba(57, 73, 171, 0.8);
    color: white;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-to-home:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
    padding-right: 15px;
}

.dropdown-toggle::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 5px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--dark-background);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(124, 77, 255, 0.2);
}

.dropdown-menu li {
    display: block;
    margin: 0;
    width: 100%;
}

.dropdown-menu li a {
    color: var(--light-text);
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background-color: rgba(124, 77, 255, 0.2);
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
}

/* 移除hover显示菜单，由JavaScript控制 */

