:root {
    --primary-color: #e74c3c;
    --secondary-color: #f39c12;
    --accent-color: #2ecc71;
    --background-color: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.logo img {
    height: 2rem;
    width: auto;
}

/* Main Content */
main {
    flex: 1;
    margin-top: 3rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hero Section */
.hero {
    background: url('images/hero-bg_11.jpg') center/cover;
    height: 40vh;
    min-height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 20rem;
}

.hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.hero p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 1.5rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.action-btn.green {
    background-color: var(--accent-color);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem;
    background-color: white;
}

.feature-card {
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.625rem;
    color: #666;
}

/* Game Showcase */
.game-showcase {
    padding: 1rem;
    background-color: var(--background-color);
}

.game-showcase h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    margin: 0;
    font-size: 0.625rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.copyright {
    font-size: 0.625rem;
    opacity: 0.8;
}

/* 适配不同屏幕尺寸 */
@media screen and (max-width: 360px) {
    html {
        font-size: 14px;
    }
}

@media screen and (min-width: 361px) and (max-width: 414px) {
    html {
        font-size: 16px;
    }
}

@media screen and (min-width: 415px) {
    html {
        font-size: 18px;
    }
}