h1 {
    font-size: 3rem;
    font-family: 'Noto Sans TC', sans-serif;
    padding: .1rem 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f3f3f3;
}

.top-container {
    border-bottom: 1px solid #dee2e6;
}

.game-previews {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.game-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; /* 保持图片比例，并填充整个容器 */
    margin: 10px; /* 设置适当的间距 */
}

.footer {
    margin-top: 5vh;
}

/* 英雄區塊 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../imgs/fatbear_banner.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -60px; /* 補償導航欄的高度 */
}

.hero-section.banner-loading {
    background-image: none;
    background-color: #1a1a1a;
}

.hero-section.banner-loaded {
    background-image: url('../imgs/fatbear_banner.webp');
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-section.banner-loaded .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: none;
    border: none;
    padding: 0;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    text-shadow: none;
}

/* 主要內容區塊 */
.main-content {
    padding: 5rem 0;
    background: #fff;
}

/* LOGO樣式 */
.logo-container {
    margin: -3rem auto 3rem;
    max-width: 600px;
}

.logo-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-image {
    transform: scale(1.02);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.action-buttons {
    margin-top: 3rem;
}

.action-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 特色區塊 */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #0b92db;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

/* 最新消息區塊 */
.news-section {
    padding: 5rem 0;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #0b92db;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

/* 統計區塊 */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0b92db 0%, #0873ab 100%);
    color: white;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA區塊 */
.cta-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: #333;
}

.cta-buttons {
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .action-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .logo-container {
        margin: -2rem auto 2rem;
    }

    .logo-image {
        max-width: 90%;
    }
}

/* 動畫效果 */
.animate__animated {
    --animate-duration: 1.2s;
}

/* 通用樣式 */
.btn-primary {
    background-color: #0b92db;
    border-color: #0b92db;
}

.btn-primary:hover {
    background-color: #0873ab;
    border-color: #0873ab;
}

.btn-outline-primary {
    color: #0b92db;
    border-color: #0b92db;
}

.btn-outline-primary:hover {
    background-color: #0b92db;
    border-color: #0b92db;
    color: white;
}

.btn-danger {
    background-color: #ff0000;
    border-color: #ff0000;
}

.btn-danger:hover {
    background-color: #cc0000;
    border-color: #cc0000;
}

/* 部落格文章區塊 */
.blog-section {
    padding: 3rem 0;
}

.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-placeholder-img {
    height: 200px !important;
    min-height: 200px;
    max-height: 200px;
    width: 100%;
    background-color: #f9f9f9;
    color: #c0c0c0;
    object-fit: cover;
}

.blog-card .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.blog-card .card-img-top {
    height: 200px !important;
    min-height: 200px;
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-card .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
    max-height: 4.5rem;
    line-height: 1.5;
}

.blog-card .card-footer {
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-card .card-img-top,
    .blog-placeholder-img {
        height: 180px !important;
        min-height: 180px;
        max-height: 180px;
    }
}

/* 社群媒體區塊 */
.social-media-section {
    padding: 3rem 0;
}

.social-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-10px);
    text-decoration: none;
    color: inherit;
}

.social-card .card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.social-card.discord .card {
    border-top: 5px solid #5865F2;
    background: linear-gradient(to bottom, rgba(88, 101, 242, 0.1), white);
}

.social-card.youtube .card {
    border-top: 5px solid #FF0000;
    background: linear-gradient(to bottom, rgba(255, 0, 0, 0.1), white);
}

.social-card.instagram .card {
    border-top: 5px solid #E1306C;
    background: linear-gradient(to bottom, rgba(225, 48, 108, 0.1), white);
}

.social-card.threads .card {
    border-top: 5px solid #000000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), white);
}

.social-card.discord:hover .card {
    box-shadow: 0 10px 25px rgba(88, 101, 242, 0.3);
}

.social-card.youtube:hover .card {
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.social-card.instagram:hover .card {
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.3);
}

.social-card.threads:hover .card {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-card.discord i {
    color: #5865F2;
}

.social-card.youtube i {
    color: #FF0000;
}

.social-card.instagram i {
    color: #E1306C;
}

.social-card.threads i {
    color: #000000;
}

.social-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.social-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .social-card .card {
        margin-bottom: 1rem;
    }
}

/* 載入狀態樣式 */
.page-loading .main-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 1s ease, visibility 1s ease, transform 1s ease;
}

.page-loading footer {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 1s ease, visibility 1s ease, transform 1s ease;
}

.page-loaded .main-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.page-loaded footer {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Banner載入指示器 */
.banner-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: white;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 隱藏banner載入指示器 */
.hero-section.banner-loaded .banner-loading-indicator {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}