/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #2bacff;
    font-weight: 700;
}

/* Logo image styling */
.nav-logo img {
    height: 56px;           /* 放大显示高度 */
    width: auto;            /* 自适应宽度，避免拉伸 */
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* 在不改变布局宽度的前提下视觉放大 */
    transform: scale(1.6);
    transform-origin: left center;
}

/* 允许放大后不被裁剪，同时不改变布局宽度 */
.nav-logo {
    overflow: visible;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2bacff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%), url('whale-background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: white;
    padding-top: 80px;
    position: relative;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 191, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 20%, rgba(0, 31, 63, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #2bacff 0%, #2bacff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(43, 172, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2bacff 0%, #2bacff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 172, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background: white;
    color: #1f2937;
    transform: translateY(-2px);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #ffffff;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Company Description */
.company-description {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.company-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #374151;
    text-align: left;
}

.company-intro {
    font-size: 1.2rem !important;
    font-weight: 500;
    color: #1f2937 !important;
    margin-bottom: 2rem !important;
}

.company-stats {
    margin-bottom: 1.5rem !important;
}

.company-tech {
    margin-bottom: 1.5rem !important;
}

.company-revenue {
    margin-bottom: 1.5rem !important;
}

.company-cert {
    margin-bottom: 1.5rem !important;
}

.company-description strong {
    color: #1f2937;
    font-weight: 700;
}



/* Brands Section */
.brands {
    padding: 5rem 0;
    background: #f8fafc;
}

/* Brands mosaic layout (new proportion) */
.brands-mosaic {
    display: grid;
    grid-template-columns: repeat(15, 1fr); /* 15 等分以便 0.33/0.34/0.33 精确表示 */
    grid-template-rows: 2fr 1.5fr 1.5fr;   /* 40% / 30% / 30% */
    gap: 20px;
    min-height: 540px;
}

.tile {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.tile span { pointer-events: none; }

/* Specific sizes/colors to mimic screenshot */
/* 第一行：游戏站（Game + Super GameBox）占 100% 宽，高度 40% */
.tile--gamehub {
    grid-column: 1 / span 15; /* 100% 宽 */
    grid-row: 1 / span 1;     /* 40% 区块 */
    background: url('images/game.png') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--gamehub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--gamehub span {
    position: relative;
    z-index: 2;
}

/* 第二行：Quiz 0.33，App 0.34，GameDL 0.33 */
.tile--quiz {
    grid-column: 1 / span 5;   /* 5/15 = 0.333... */
    grid-row: 2 / span 1;
    background: url('images/quiz.png') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--quiz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--quiz span {
    position: relative;
    z-index: 2;
}

.tile--app {
    grid-column: 6 / span 5;   /* 5/15 ≈ 0.333，但中间 0.34 用 5 表示，视觉近似 */
    grid-row: 2 / span 1;
    background: url('images/app_download.png') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--app span {
    position: relative;
    z-index: 2;
}

.tile--gamedl {
    grid-column: 11 / span 5;  /* 5/15 = 0.333... */
    grid-row: 2 / span 1;
    background: url('images/game.png') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--gamedl::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--gamedl span {
    position: relative;
    z-index: 2;
}

/* 第三行：5 等宽块，各占 0.20 */
.tile--news {
    grid-column: 1 / span 3;   /* 3/15 = 0.2 */
    grid-row: 3 / span 1;
    background: url('images/news_site.jpg') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--news span {
    position: relative;
    z-index: 2;
}

.tile--ecom {
    grid-column: 4 / span 3;
    grid-row: 3 / span 1;
    background: url('images/e-commerce.jpg') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--ecom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--ecom span {
    position: relative;
    z-index: 2;
}

.tile--menu {
    grid-column: 7 / span 3;
    grid-row: 3 / span 1;
    background: url('images/menu-background.jpg') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--menu span {
    position: relative;
    z-index: 2;
}

.tile--story {
    grid-column: 10 / span 3;
    grid-row: 3 / span 1;
    background: url('images/stacks-of-hardback-books.jpg') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--story span {
    position: relative;
    z-index: 2;
}

.tile--medical {
    grid-column: 13 / span 3;
    grid-row: 3 / span 1;
    background: url('images/medical.jpg') center center;
    background-size: cover;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.tile--medical::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.tile--medical span {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .brands-mosaic { grid-template-columns: repeat(12, 1fr); grid-template-rows: 2fr 1.5fr 1.5fr; }
    .tile--gamehub { grid-column: 1 / span 12; }
    .tile--quiz { grid-column: 1 / span 4; }
    .tile--app { grid-column: 5 / span 4; }
    .tile--gamedl { grid-column: 9 / span 4; }
    .tile--news { grid-column: 1 / span 2; }
    .tile--ecom { grid-column: 3 / span 2; }
    .tile--menu { grid-column: 5 / span 2; }
    .tile--story { grid-column: 7 / span 2; }
    .tile--medical { grid-column: 9 / span 2; }
}

@media (max-width: 768px) {
    .brands-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 90px;
        gap: 12px;
    }
    .tile { grid-column: auto / span 4; grid-row: auto; }
    .tile--gamehub { grid-row: span 2; }
}

/* Monetization & Technology Section */
.monetization {
    padding: 5rem 0;
    background: #ffffff;
}

.monetization-section {
    margin-bottom: 4rem;
}

.monetization-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1f2937;
    text-align: center;
}

/* Partner Logos */
.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.partner-logo {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.partner-logo i {
    font-size: 2.5rem;
    color: #2bacff;
    margin-bottom: 1rem;
    display: block;
}

.partner-logo span {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.1rem;
}

/* Monetization Methods */
.monetization-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.method-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.method-item:hover {
    transform: translateY(-5px);
}

.method-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.method-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Proprietary Tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tool-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2bacff 0%, #2bacff 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tool-item p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-features span {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #6b7280;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2bacff;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #fbbf24;
    color: #1f2937;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

.footer-content .footer-section:nth-child(2) {
    margin-left: 3rem;
}

@media (max-width: 1024px) {
  .footer-content .footer-section:nth-child(2) {
    margin-left: 0;
  }
}

/* 3D Flip Card Effects */
.flip-card {
    cursor: pointer;
}

.flip-card-inner {
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateX(180deg);
}

/* 翻转后，背面内容保持正立 */
.flip-card.flipped .flip-card-back {
    transform: rotateX(180deg) rotateX(-180deg);
}

/* 只允许一个卡片翻转 */
.flip-card.flipped .flip-card-inner {
    transform: rotateX(180deg);
}

.flip-card a:hover {
    background: white;
    color: #333;
    transform: scale(1.05);
}

/* 3D Flip Cards Responsive */
@media (max-width: 768px) {
    .flip-cards-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .monetization-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-item {
        padding: 2rem;
    }
    
    .company-description {
        padding: 0 1rem;
    }
    
    .company-description p {
        font-size: 1rem;
    }
    
    .company-intro {
        font-size: 1.1rem !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.stat-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-item:nth-child(5) { animation-delay: 0.5s; }
.stat-item:nth-child(6) { animation-delay: 0.6s; } 

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: #2bacff;
}

