:root {
    --color-primary: #6a1b9a;    /* 深紫色 */
    --color-secondary: #ff00ff;   /* 亮粉色 */
    --color-background: #2d1b3e;  /* 暗紫色背景 */
    --color-text: #ffffff;        /* 白色文字 */
}

.header {
    background: linear-gradient(to right, var(--color-background), var(--color-primary));
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header__nav {
    max-width: 1200px;
    margin: 0 auto;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.header__title {
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--color-secondary);
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header__title {
        font-size: 1.2rem;
    }

    .header__logo {
        width: 40px;
        height: 40px;
    }
}

body {
    background-color: var(--color-background);
    margin: 0;
    color: var(--color-text);
}

.game {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    min-height: 80vh;
    max-width: 70%;
    margin: 0 auto;
    background: linear-gradient(
        135deg,
        rgba(45, 27, 62, 0.9),
        rgba(106, 27, 154, 0.8)
    );
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
    backdrop-filter: blur(10px);
}

.game__controls {
    text-align: center;
}

.game__flip-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.game__flip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.6);
}

.game__flip-btn:active {
    transform: translateY(1px);
}

.game__flip-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.game__board {
    perspective: 1000px;
    width: 100%;
    max-width: 70%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.1);
}

.card {
    width: 100%;
    aspect-ratio: 1050/600;
}

.card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card.is-flipped .card__inner {
    transform: rotateY(180deg);
}

.card__front,
.card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card__back {
    transform: rotateY(180deg);
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .game {
        max-width: 95%;
        padding: 1rem;
        gap: 2rem;
    }

    .game__board {
        max-width: 100%;
    }

    .game__flip-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* 添加一些额外的氛围效果 */
.content {
    color: var(--color-text);
    max-width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(45, 27, 62, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.1);
}

.content__title {
    color: var(--color-secondary);
    text-shadow: 0 0 10px var(--color-secondary);
}

.footer {
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text);
    padding: 2rem;
    margin-top: 3rem;
}

.footer__links a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: text-shadow 0.3s ease;
}

.footer__links a:hover {
    text-shadow: 0 0 10px var(--color-secondary);
}

/* 内容区域的基础样式 */
.content {
    color: var(--color-text);
    max-width: 80%;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(45, 27, 62, 0.7);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.1);
    line-height: 1.6;
}

/* 标题样式 */
.content__title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    text-shadow: 0 0 10px var(--color-secondary);
    margin-bottom: 2rem;
    text-align: center;
}

.content h2 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin: 2.5rem 0 1.5rem;
    border-bottom: 2px solid rgba(255, 0, 255, 0.2);
    padding-bottom: 0.5rem;
}

.content h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 2rem 0 1rem;
    text-shadow: 0 0 5px var(--color-secondary);
}

.content h4 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 1.5rem 0 1rem;
    opacity: 0.9;
}

/* 段落样式 */
.content p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 列表样式 */
.content ul,
.content ol {
    margin: 1rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.content ul li::marker {
    color: var(--color-secondary);
}

.content ol li::marker {
    color: var(--color-secondary);
}

/* FAQ部分样式 */
.faq__item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 255, 0.1);
}

.faq__item h4 {
    color: var(--color-secondary);
    margin-top: 0;
    margin-bottom: 1rem;
}

.faq__item p {
    margin-bottom: 0;
}

/* 内容区块样式 */
.content__section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 0, 255, 0.1);
}

.content__section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .content {
        max-width: 95%;
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .content__title {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .content h3 {
        font-size: 1.3rem;
    }

    .content h4 {
        font-size: 1.1rem;
    }

    .content p,
    .content li {
        font-size: 1rem;
    }

    .faq__item {
        padding: 1rem;
    }
}

/* 悬停效果 */
.content a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.content a:hover {
    text-shadow: 0 0 8px var(--color-secondary);
    text-decoration: underline;
}

/* 特殊强调文本 */
.content strong {
    color: var(--color-secondary);
    font-weight: bold;
}

/* 引用样式 */
.content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--color-secondary);
    background: rgba(0, 0, 0, 0.2);
    font-style: italic;
}

/* Hero 区域样式优化 */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    /* 添加硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}

.hero__content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero__title {
    font-size: 3.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* 简化阴影效果 */
    text-shadow: 0 0 20px var(--color-secondary);
    /* 优化动画性能 */
    animation: glow 3s ease-in-out infinite alternate;
    will-change: text-shadow;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero__image-wrapper {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    /* 简化阴影效果 */
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.1);
    /* 添加硬件加速 */
    transform: translateZ(0);
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;
    /* 使用transform替代filter效果 */
    transform: translateZ(0);
    transition: transform 0.3s ease;
    /* 添加硬件加速 */
    will-change: transform;
    /* 优化图片渲染 */
    backface-visibility: hidden;
}

/* 减少hover时的变换幅度 */
.hero__image:hover {
    transform: scale(1.01);
}

/* 优化发光动画 */
@keyframes glow {
    from {
        text-shadow: 0 0 20px var(--color-secondary);
    }
    to {
        text-shadow: 0 0 40px var(--color-secondary);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__image-wrapper {
        margin: 0 1rem;
    }
}

.content {
    padding: 4rem 2rem;
    background: var(--color-background);
}

.content__section {
    max-width: 1200px;
    margin: 0 auto 6rem;
}

.content__title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.content__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
    margin: 2rem 0;
}

.content__text {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.1);
}

.content__text h3 {
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.content__text h4 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 1.5rem 0 1rem;
}

.content__text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.content__text ul {
    list-style: none;
    padding: 0;
}

.content__text li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.content__text li:before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

.content__images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.content__image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.content__image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 0, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .content__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content__images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content__images {
        grid-template-columns: 1fr;
    }
    
    .content__text {
        padding: 1.5rem;
    }
}

.video-section {
    width: 100%;
    max-width: 70%;  /* 与游戏区域保持一致的宽度 */
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-section {
        max-width: 95%;
        padding: 0 0.5rem;
    }
}