

/* 基本样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

/* 导航链接 */
.nav-link {
    position: relative;
    color: #1A2A52;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #FFB7C5;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFB7C5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFF;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
}

.tag:hover {
    background-color: rgba(255, 183, 197, 0.6);
    transform: translateY(-2px);
}

/* 平台徽章样式 */
.platform-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.9);
    color: #1A2A52;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.platform-badge i {
    font-size: 1.2rem;
}

.platform-badge:hover {
    background-color: #FFB7C5;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFB7C5;
    color: #1A2A52;
    font-weight: 700;
    border-radius: 9999px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #FF8DA1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #FFF;
    font-weight: 700;
    border: 2px solid #FFF;
    border-radius: 9999px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #FFF;
    color: #1A2A52;
    transform: translateY(-2px);
}

/* 章节标题 */
.section-title {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #FFB7C5;
}

.text-white.section-title::after {
    background-color: #FFF;
}

/* 角色卡片 */
.character-slider {
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0 -1.5rem;
    padding: 1rem;
}

.character-card {
    flex: 0 0 300px;
    height: 450px;
    margin: 0 2rem;
    perspective: 1000px;
    overflow: hidden; /* Prevent overflow during flip animation */
}

.character-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.character-card:hover .character-card-inner {
    transform: rotateY(180deg);
}

.character-card-front, .character-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 0.5rem;
    overflow: hidden;
}

.character-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.character-nav-btn.active {
    background-color: #FFF;
    transform: scale(1.2);
}

/* 特色卡片 */
.feature-card {
    background-color: #FFF;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #FFB7C5;
    color: #1A2A52;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 评价卡片 */
.review-slider {
    display: flex;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.review-card {
    flex: 0 0 100%;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    text-align: center;
}

.review-stars {
    color: #D4AF37;
    font-size: 1.5rem;
}

.review-text {
    font-size: 1.125rem;
    font-style: italic;
}

.review-author {
    font-weight: 700;
}

.review-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.review-nav-btn.active {
    background-color: #FFF;
    transform: scale(1.2);
}

/* 购买卡片 */
.purchase-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.purchase-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

/* 樱花飘落效果 */
.petal {
    position: absolute;
    background-color: #FFB7C5;
    border-radius: 150% 0 150% 0;
    animation: falling linear infinite;
}

@keyframes falling {
    0% {
        transform: translate(0, -10px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100px, 100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 英雄区域背景动画 */
.bg-gradient-animation {
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 星星背景 */
.stars {
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 200px 60px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 240px 170px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 280px 90px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 320px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 360px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 400px 180px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 440px 60px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 480px 100px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 520px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 560px 170px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 600px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 640px 140px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 680px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 720px 120px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 760px 160px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 800px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 840px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 880px 110px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 920px 150px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 960px 90px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1000px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1040px 130px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1080px 80px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1120px 170px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1160px 60px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 1200px 100px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 1200px 200px;
    animation: stars-animation 100s linear infinite;
}

@keyframes stars-animation {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -1200px 200px;
    }
}

/* 动画效果 */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in-out 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in-out 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal, .reveal-left, .reveal-right, .reveal-delay-1, .reveal-delay-2 {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
}

.reveal-left.active {
    opacity: 1;
    animation: slideInLeft 1s ease forwards;
}

.reveal-right.active {
    opacity: 1;
    animation: slideInRight 1s ease forwards;
}

.reveal-delay-1.active {
    opacity: 1;
    animation: fadeIn 1s ease 0.3s forwards;
}

.reveal-delay-2.active {
    opacity: 1;
    animation: fadeIn 1s ease 0.6s forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 游戏截图样式 */
.screenshot-main-container {
    aspect-ratio: 16 / 9;
    max-height: 600px;
    transition: all 0.5s ease;
}

#main-screenshot {
    transition: opacity 0.3s ease;
}

.screenshot-thumb {
    position: relative;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-thumb.active {
    border-color: #FFB7C5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.screenshot-thumb:hover {
    transform: translateY(-5px);
}

.screenshot-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.screenshot-thumb.active::after {
    opacity: 0;
}

.screenshot-thumb:hover::after {
    opacity: 0.1;
}

/* 攻略页面样式 */
.guide-section {
    border: 1px solid rgba(255, 183, 197, 0.3);
}

.guide-tip {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

kbd {
    font-family: monospace;
    font-size: 0.875rem;
}

.character-guide-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.character-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.character-header {
    padding: 1.5rem;
    color: white;
}

.character-content {
    padding: 1.5rem;
}

.character-content ul {
    list-style: none;
    padding: 0;
}

.character-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.character-content li::before {
    content: "•";
    color: #FFB7C5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

table {
    border-collapse: collapse;
}

table th,
table td {
    border: 1px solid #e5e7eb;
}

table th {
    background-color: #1A2A52;
    color: white;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f9fafb;
}

table tr:hover {
    background-color: #f3f4f6;
}

/* 游戏配置模块样式 - 仅保留必要的自定义样式 */

/* 响应式设计 */
@media (max-width: 768px) {
    .character-slider {
        overflow-x: auto;
    }
    
    .character-card {
        flex: 0 0 250px;
        height: 375px;
        margin: 0 1rem; /* 移动端减小边距 */
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .screenshot-main-container {
        aspect-ratio: 4 / 3;
    }
    
    .tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .platform-badge {
        padding: 0.5rem 1rem;
    }
    
    .character-guide-card {
        margin-bottom: 1rem;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
    
}
