/* 全局樣式 */
:root {
    --primary-color: #6a1b9a;
    --secondary-color: #ffd700;
    --accent-color: #ff3d00;
    --dark-bg: #2a0e4a;
    --light-bg: #f5f5f5;
    --text-light: #ffffff;
    --text-dark: #333333;
    --success-color: #4caf50;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
	margin-left: auto;
	margin-right: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #5c1786;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-download {
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.btn-download:hover {
    background-color: #e53700;
}

.btn-service {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.btn-service:hover {
    background-color: #5c1786;
}

/* 標題樣式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
}

.section-dark .section-title {
    color: var(--text-light);
}

.section-dark .section-title::after {
    background-color: var(--secondary-color);
}

/* 區塊樣式 */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* 頂部導航區 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(42, 14, 74, 0.95);
    color: var(--text-light);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    width: auto;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
}

/* 英雄區 */
.hero-section {
    padding: 180px 0 100px;
    background: linear-gradient(rgba(42, 14, 74, 0.8), rgba(42, 14, 74, 0.9)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    margin-top:60px;
	margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.hero-image {
    margin-top: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.hero-image>img {
	width: 100%;
	max-width: 1200px;
}

/* 品牌介紹區 */
.brand-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    margin: 0 auto;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 熱門遊戲區 */
.game-categories {
    margin-bottom: 50px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-light);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.tab-btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.category-content {
    display: none;
}

.category-content.active {
    display: block;
}

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

.game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.game-image {
    width: 320px;
    overflow: hidden;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.game-image img {
    width: 100%;
    height: auto;
    object-fit: fit;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.game-rating {
    margin-top: 15px;
    color: var(--secondary-color);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 30px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--secondary-color);
    font-weight: bold;
}

.comparison-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 會員福利區 */
.benefits-content > div {
    margin-bottom: 50px;
}

.benefits-content h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: center;
}

.reward-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.reward-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

.reward-info h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.levels-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.levels-table th,
.levels-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.levels-table th {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.levels-table tr:hover {
    background-color: #f9f9f9;
}

.promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.promotion-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.promotion-image {
	width: 120px;
    height: 120px;
    overflow: hidden;
	margin-top: 20px;
	margin-left: auto;
	margin-right: auto;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-info {
    padding: 20px;
}

.promotion-info h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 註冊教學區 */
.download-options h3,
.registration-steps h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-light);
    text-align: center;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.download-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.download-icon {
    margin-bottom: 20px;
}

.download-icon img {
    margin: 0 auto;
}

.download-card h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.download-card p {
    margin-bottom: 20px;
}

.qrcode-image {
    margin: 20px auto 0;
    width: 150px;
    height: 150px;
    background-color: #fff;
    padding: 10px;
    border-radius: var(--border-radius);
}

.steps-container {
    margin-top: 30px;
}

.step {
    display: flex;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    font-size: 1.5rem;
    font-weight: bold;
}

.step-content {
    padding: 20px;
    flex-grow: 1;
}

.step-content h4 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.step-image {
    margin-top: -60px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* 安全與服務區 */
.safety-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.safety-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.safety-card:hover {
    transform: translateY(-10px);
}

.safety-icon {
    margin-bottom: 20px;
}

.safety-icon img {
    margin: 0 auto;
}

.safety-card h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.fair-gaming-content {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 50px;
}

.fair-gaming-image {
    flex: 0 0 40%;
}

.fair-gaming-text {
    flex: 0 0 60%;
    padding: 30px;
}

.fair-gaming-text ul {
    margin-top: 15px;
    list-style-type: disc;
    padding-left: 20px;
}

.fair-gaming-text li {
    margin-bottom: 10px;
}

.service-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-option {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    margin: 0 auto;
}

.service-option h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-option p {
    margin-bottom: 20px;
}

/* 常見問題區 */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.accordion-header h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-body {
    padding: 0 20px 20px;
    max-height: 500px;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* 行動呼籲區 */
#cta {
    background: linear-gradient(rgba(42, 14, 74, 0.9), rgba(42, 14, 74, 0.9)), url('images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.cta-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* 頁尾區 */
#footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 60px 0 20px;
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-links h3,
.footer-policies h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul,
.footer-policies ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a:hover,
.footer-policies a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-disclaimer p {
	text-align: center;
    margin-bottom: 10px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e6c200;
    transform: translateY(-5px);
}

/* 響應式設計 */
@media (max-width: 1199px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }
    
    .fair-gaming-content {
        flex-direction: column;
    }
    
    .fair-gaming-image,
    .fair-gaming-text {
        flex: 0 0 100%;
    }
}

@media (max-width: 767px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        width: 100%;
        padding: 10px;
    }
}

@media (max-width: 575px) {
    .brand-features,
    .games-grid,
    .promotion-cards,
    .download-cards,
    .safety-cards,
    .service-options {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
	margin: 50px auto 0 auto;
	max-width:1200px;
    height: 0;
    overflow: hidden;
}
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
