/* Minimalist geometric style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    overflow-x: hidden;
    margin: 0;
    line-height: 1.6;
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

/* 画布包装器 - 用于相对定位暂停按钮 */
.canvas-wrapper {
    position: relative;
    display: inline-block;
}

#gameCanvas {
    border: 2px solid #ffffff;
    background: #0a0a0a;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    display: block;
}

.ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.score, .lives, .high-score {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.high-score {
    color: #feca57;
}

/* Pause Button - 相对于游戏画布定位 */
.pause-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* 相对于画布定位，而不是整个容器 */
    transform: translateX(0) translateY(0);
}

.pause-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pause-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.start-screen, .game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.85);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    z-index: 100;
    max-width: 480px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.start-screen h1, .game-over h2 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.start-screen p, .game-over p {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.4;
}

.controls-info {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    line-height: 1.3;
}

.controls-info p {
    margin: 3px 0;
}

.bullet-info {
    margin-top: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bullet-info h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #feca57;
    text-align: center;
}

.bullet-types {
    display: grid;
    gap: 5px;
}

.bullet-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
}

.bullet-icon {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
}

.bullet-icon.red {
    color: #ff4757;
}

.bullet-icon.yellow {
    color: #ffdd59;
}

.bullet-icon.purple {
    color: #8e44ad;
}

.bullet-icon.gray {
    color: #57606f;
}

/* Debug control panel */
.debug-controls {
    position: absolute;
    top: 120px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: Arial, sans-serif;
}

.debug-controls h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #feca57;
}

.debug-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.debug-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.debug-btn.active {
    background: #feca57;
    color: #000;
    border-color: #feca57;
}

.debug-btn.active:hover {
    background: #ff9ff3;
}

.debug-section {
    margin-bottom: 15px;
}

.debug-section h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #a4b0be;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bullet-desc {
    flex: 1;
}

/* Power-up info styles */
.powerup-info {
    margin-top: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.powerup-info h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #feca57;
    text-align: center;
}

.powerup-types {
    display: grid;
    gap: 5px;
}

.powerup-type {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.9);
}

.powerup-icon {
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
    min-width: 24px;
}

.powerup-desc {
    flex: 1;
}

button {
    font-size: 1.1em;
    padding: 10px 20px;
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Pause screen buttons */
.pause-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.pause-buttons button {
    margin-top: 0;
    min-width: 120px;
}

/* Game Description Banner Styles */
.game-description-banner {
    background: linear-gradient(135deg, #4a69bd, #1e3799);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-content h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.feature-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.badge-icon {
    font-size: 1.3em;
}

.badge-text {
    font-weight: bold;
    font-size: 1.1em;
}

/* SEO Content Styles */
.seo-content {
    background: #f8f9fa;
    color: #333;
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-content section {
    margin-bottom: 80px;
}

.seo-content h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: #2a5298;
    font-weight: bold;
}

.seo-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #1e3c72;
    font-weight: bold;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

/* How to Play Styles */
.gameplay-steps {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Bullet Types Detailed */
.bullets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.bullet-detail {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.bullet-visual {
    font-size: 4em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px currentColor;
}

.red-bullet { color: #ff4757; }
.yellow-bullet { color: #ffdd59; }
.purple-bullet { color: #8e44ad; }
.gray-bullet { color: #57606f; }

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-item h3 {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 20px 25px;
    margin: 0;
    font-size: 1.2em;
}

.faq-item p {
    padding: 20px 25px;
    margin: 0;
    line-height: 1.7;
}

/* Tech Features */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #ff6b6b;
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .ui-overlay {
        font-size: 20px;
    }

    .start-screen, .game-over {
        padding: 30px;
        max-width: 520px;
    }

    .start-screen h1, .game-over h2 {
        font-size: 2.5em;
    }

    .start-screen p, .game-over p {
        font-size: 1.2em;
    }

    button {
        font-size: 1.2em;
        padding: 12px 25px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .ui-overlay {
        font-size: 16px;
    }

    .start-screen, .game-over {
        padding: 20px;
        margin: 15px;
        max-width: 90vw;
    }

    .start-screen h1, .game-over h2 {
        font-size: 1.8em;
    }

    .start-screen p, .game-over p {
        font-size: 0.95em;
    }

    .pause-btn {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 1em;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-description {
        font-size: 1.1em;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
    }

    .seo-content h2 {
        font-size: 2em;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        align-self: center;
    }

    .banner-content h2 {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .feature-badges {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .badge {
        min-width: 200px;
        padding: 12px 20px;
    }

    .badge-text {
        font-size: 1em;
    }
}
