/* 苹果风格的CSS设计 - Monster Survivors游戏网站 */

/* 全局设置 */
:root {
    --apple-blue: #007aff;
    --apple-light-blue: #64a1ff;
    --apple-grey: #8e8e93;
    --apple-light-grey: #f5f5f7;
    --apple-dark-grey: #3a3a3c;
    --apple-white: #ffffff;
    --apple-black: #1d1d1f;
    --section-spacing: 2.5rem;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans SC", "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--apple-black);
    background-color: var(--apple-light-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 标题和段落 */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.022em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-top: 1.5rem;
    color: var(--apple-black);
}

h3 {
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--apple-dark-grey);
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* 头部设计 */
.hero-header {
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-light-blue));
    color: var(--apple-white);
    padding: 4rem 0 5rem;
    text-align: center;
    margin-bottom: var(--section-spacing);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.game-title {
    margin-bottom: 0.5rem;
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.header-decoration {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

/* 主要内容 */
main {
    margin-bottom: var(--section-spacing);
}

section {
    margin-bottom: var(--section-spacing);
    background-color: var(--apple-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.section-title {
    color: var(--apple-blue);
    font-size: 1.9rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--apple-blue);
    border-radius: 3px;
}

/* 游戏iframe区域 */
.game-section {
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9比例 */
    overflow: hidden;
    border-radius: var(--border-radius);
}

.game-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 介绍文本 */
.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--apple-dark-grey);
    margin-bottom: 2rem;
}

/* 特性部分 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: var(--apple-light-grey);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-item:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, var(--apple-light-grey), #fff);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
    color: var(--apple-blue);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* 操作指南部分 */
.instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.instruction-item {
    background: var(--apple-light-grey);
    padding: 1.8rem 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--apple-blue);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* 游戏攻略部分 */
.tips-list {
    list-style-type: none;
    margin-top: 1.2rem;
}

.tips-list li {
    position: relative;
    padding: 0.8rem 0.8rem 0.8rem 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    background-color: var(--apple-light-grey);
    border-radius: var(--border-radius);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.tips-list li:hover {
    transform: translateX(5px);
    background-color: rgba(0, 122, 255, 0.05);
}

.tips-list li::before {
    content: "";
    position: absolute;
    left: 0.8rem;
    top: 1.1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--apple-blue);
}

/* 页脚 */
footer {
    background-color: var(--apple-dark-grey);
    color: var(--apple-light-grey);
    padding: 2rem 0;
    text-align: center;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-top: 3rem;
}

footer a {
    color: var(--apple-light-blue);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 1.5rem;
    }

    .feature-item,
    .instruction-item {
        padding: 1.2rem;
    }

    .hero-header {
        padding: 3rem 0 4rem;
    }
}

@media (max-width: 480px) {
    .hero-header {
        padding: 2.5rem 0 3.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .game-title {
        font-size: 2rem;
    }

    .features,
    .instructions {
        grid-template-columns: 1fr;
    }

    section {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .intro-text {
        font-size: 1rem;
    }
}