/* style.css - 出海游戏公司网站样式 */

/* 基础重置和全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-weight: 400;
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 专业游戏公司风格 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo h2 {
    color: #6366f1;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #6366f1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

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

.bar {
    width: 25px;
    height: 3px;
    background: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 页面标题区域 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 通用区块样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

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

/* 首页英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 24px;
    opacity: 0.95;
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 36px;
    opacity: 0.9;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.game-icon {
    font-size: 15rem;
    opacity: 0.2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: floatGameIcon 6s ease-in-out infinite;
}

@keyframes floatGameIcon {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

/* 关于我们区域 */
.about {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    line-height: 1.3;
}

.about-text p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 40px;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.stat-item h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 8px;
}

.stat-item p {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-icon {
    font-size: 10rem;
    opacity: 0.1;
}

/* 游戏展示区域 */
.featured-games {
    padding: 80px 20px;
    background: white;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 36px;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.game-image {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 24px;
}

.game-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
}

.game-card p {
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.game-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.game-tags span {
    background: linear-gradient(135deg, #eef2ff, #f3f4f6);
    color: #6366f1;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e0e7ff;
}

.game-features h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.game-features ul {
    list-style: none;
    margin-bottom: 24px;
}

.game-features li {
    padding: 6px 0;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
}

.game-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.game-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 16px 12px;
    background: #f8fafc;
    border-radius: 12px;
    flex: 1;
    min-width: 80px;
}

.stat strong {
    display: block;
    font-size: 1.1rem;
    color: #6366f1;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat {
    font-size: 0.85rem;
    color: #6b7280;
}

.game-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 游戏详情页特殊样式 */
.game-detail-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    transition: transform 0.3s ease;
}

.game-detail-card:hover {
    transform: translateY(-3px);
}

.game-visual {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.game-screenshot {
    font-size: 8rem;
    opacity: 0.3;
}

.game-trailer-placeholder {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

.game-info {
    padding: 40px;
}

.game-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.3;
}

.game-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.game-meta span {
    background: #f0f9ff;
    color: #0ea5e9;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bae6fd;
}

.game-description {
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 新闻页面样式 */
.news-section {
    padding: 60px 20px 100px;
    background: #fafafa;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 36px;
    margin-bottom: 80px;
}

.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-image {
    font-size: 3rem;
    text-align: center;
    padding: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.news-content {
    padding: 30px;
}

.news-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
}

.news-category {
    background: linear-gradient(135deg, #eef2ff, #dbeafe);
    color: #6366f1;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #bfdbfe;
}

.news-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.read-more {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

/* 新闻筛选和公告 */
.news-filter {
    background: white;
    padding: 36px;
    border-radius: 16px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.news-filter h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: #6366f1;
    transform: translateY(-1px);
}

.announcements {
    display: grid;
    gap: 28px;
}

.announcement-card {
    display: flex;
    gap: 24px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-2px);
}

.announcement-icon {
    font-size: 2.5rem;
    opacity: 0.2;
    margin-top: 5px;
    flex-shrink: 0;
}

.announcement-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
    line-height: 1.3;
}

.announcement-date {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 14px;
}

.announcement-content p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #d1d5db;
    padding: 80px 20px 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #374151, transparent);
}

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

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: #f1f5f9;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #6366f1;
    transform: translateX(2px);
}

.footer-section p {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-links a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    position: relative;
}

/* 响应式设计 - 平板设备 */
@media screen and (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .games-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .game-detail-card {
        grid-template-columns: 1fr;
    }
    
    .game-visual {
        min-height: 250px;
    }
}

/* 响应式设计 - 手机设备 */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 30px 0;
        gap: 1.5rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }
    
    .page-header {
        padding: 100px 15px 40px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 24px 16px;
    }
    
    .games-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .game-detail-card {
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }
    
    .game-visual {
        min-height: 200px;
    }
    
    .game-info {
        padding: 30px 20px;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-stats {
        justify-content: space-around;
        gap: 12px;
    }
    
    .game-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .upcoming-games {
        grid-template-columns: 1fr;
    }
    
    .upcoming-game-card {
        flex-direction: column;
        text-align: center;
    }
    
    .announcement-card {
        flex-direction: column;
        gap: 16px;
    }
    
    .announcement-icon {
        align-self: center;
        margin-bottom: 8px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 80px 12px 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 80px 12px 30px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .games-section,
    .news-section {
        padding: 30px 12px 60px;
    }
    
    .game-card {
        padding: 24px;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .stat-item h4 {
        font-size: 1.6rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}