* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #2d3748;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e3a8a, #3730a3);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 32px;
    margin-left: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon {
    font-size: 28px;
    background: white;
    color: #1e3a8a;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

nav {
    width: 100%;
    position: relative;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 18px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    display: flex;
    align-items: center;
}

nav ul li a:hover {
    color: #60a5fa;
}

nav ul li a.active {
    color: #60a5fa;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-toggle select {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 35px;
}

.language-toggle select option {
    background: #1e3a8a;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(55, 48, 163, 0.85)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: #60a5fa;
    color: white;
    padding: 14px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin: 8px;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title h2 {
    font-size: 36px;
    color: #1e3a8a;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    font-weight: 700;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #60a5fa;
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 20px auto 0;
    color: #64748b;
    font-size: 18px;
}

/* Game Section */
.game-section {
    padding: 90px 0;
    background: #f1f5f9;
}

.game-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.game-frame {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border: none;
}

/* Ecosystem Roles */
.roles-section {
    padding: 90px 0;
    background: white;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.role-card {
    background: #f8fafc;
    padding: 45px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s;
    border-top: 5px solid #1e3a8a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.role-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.role-card.developer {
    border-top-color: #60a5fa;
}

.role-card.publisher {
    border-top-color: #f59e0b;
}

.role-card.user {
    border-top-color: #10b981;
}

.role-icon {
    font-size: 54px;
    margin-bottom: 25px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.role-card h3 {
    font-size: 26px;
    margin-bottom: 18px;
    color: #1e3a8a;
    font-weight: 600;
}

.role-card p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 16px;
}

.role-card ul {
    list-style: none;
    text-align: left;
    margin-top: 25px;
}

.role-card ul li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: #475569;
}

.role-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
    font-size: 18px;
}

/* Ecosystem Value */
.value-section {
    padding: 90px 0;
    background: #f1f5f9;
}

.value-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.value-text {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.value-image {
    flex: 1;
    min-width: 300px;
}

.value-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.value-text h3 {
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.value-text p {
    margin-bottom: 20px;
    color: #475569;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.feature-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #60a5fa;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h4 {
    color: #1e3a8a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.feature-item h4 i {
    margin-right: 12px;
    color: #60a5fa;
}

/* Success Cases */
.cases-section {
    padding: 90px 0;
    background: white;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s;
    border: 1px solid #e2e8f0;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.case-image {
    height: 220px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 25px;
}

.case-content h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1e3a8a;
    font-weight: 600;
}

.case-tag {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Developer Center */
.developer-section {
    padding: 90px 0;
    background: #f1f5f9;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.process-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e3a8a;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.process-icon {
    font-size: 54px;
    margin-bottom: 25px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a8a;
}

.process-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
    color: #1e3a8a;
    font-weight: 600;
}

.process-card p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 16px;
}

.api-section {
    margin-top: 80px;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.api-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #60a5fa;
}

.api-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.api-method {
    background: #1e3a8a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
}

.api-endpoint {
    font-family: monospace;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 16px;
}

.api-description {
    margin-bottom: 15px;
    color: #475569;
}

.api-params {
    margin-top: 15px;
}

.api-params h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.param-list {
    list-style: none;
}

.param-list li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.param-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #60a5fa;
}

.param-name {
    font-weight: 600;
    color: #1e3a8a;
}

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    font-family: monospace;
    overflow-x: auto;
    margin-top: 30px;
}

/* Code Language Selector */
.code-language-selector {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #374151;
    flex-wrap: wrap;
}

.lang-tab {
    padding: 8px 16px;
    background: #1f2937;
    color: #9ca3af;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.lang-tab:hover {
    color: #e5e7eb;
    background: #374151;
}

.lang-tab.active {
    color: #60a5fa;
    border-bottom: 2px solid #60a5fa;
    background: #111827;
}

.code-example {
    display: none;
}

.code-example.active {
    display: block;
}

/* Footer */
footer {
    background: #1e3a8a;
    color: white;
    padding: 50px 0 25px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #60a5fa;
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #60a5fa;
}

.address-item {
    margin-bottom: 20px;
}

.address-item h4 {
    margin-bottom: 8px;
    color: #60a5fa;
    font-weight: 600;
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 15px;
}

/* Language Content */
.lang-zh, .lang-es, .lang-fr, .lang-de {
    display: none;
}

/* Page Content */
.page-content {
    min-height: 60vh;
    padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-direction: column;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .value-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .game-frame {
        height: 50vh;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .language-toggle {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 15px;
    }
    
    .code-language-selector {
        justify-content: center;
    }
    
    .lang-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}