:root {
    --primary-color: #e7ae00;   /* 主題黃 */
    --secondary-color: #dc3545; /* 第二主題紅 */
    --line-green: #00ac48;      /* LINE 綠色 */
    --background-color: #fff;  /* 背景白 */
    --text-color: #343a40;
    --footer-bg: #212529;
    --light-gray: #f8f9fa;
}

/* --- 基本重設與全域設定 --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Noto Sans TC', 'Helvetica Neue', Arial, '微軟正黑體', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
}

b {
    color: var(--secondary-color);
    margin-left: 2px;
    margin-right: 2px;
    font-size: 1.1rem;
}
/* --- 通用元件 --- */
.container {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(255, 193, 7, 0.6);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(220, 53, 69, 0.6);
}

.btn-line {
    background-color: var(--line-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
}

.btn-line:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(6, 199, 85, 0.6);
}


/* --- 導覽列 --- */
.navbar {
    background: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding 0.3s;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.navbar-logo-img {
    width: 76px;
    height: auto;
    margin-right: 15px;
}

.navbar-logo span {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 80%;
}

/* --- Hero 區域 --- */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1920x1080/000000/FFFFFF?text=精彩賽事瞬間');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    height: calc(100vh - 80px);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* --- 會員操作區塊 --- */
#member-actions {
    background-color: var(--light-gray);
}
.actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* --- 滿額贈禮區塊 --- */
#dealer-promo {
    background-color: var(--background-color);
}
.promo-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid var(--primary-color);
    padding: 40px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
}
.promo-container p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}
.promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.promo-list li {
    background-color: var(--light-gray);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.promo-list li .fa-gift {
    color: var(--secondary-color);
}
.promo-highlight {
    display: block;
    margin-top: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* --- 關於運彩區塊 --- */
#about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- 最新活動區塊 --- */
#promo {
        background-color: var(--light-gray);
}
.poster-placeholder {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    background-color: #e9ecef;
    border: 3px dashed var(--secondary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px auto;
    overflow: hidden;
}

.poster-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-cta {
    text-align: center;
}

/* --- 玩法介紹區塊 --- */
.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.step-card {
    flex: 1;
    min-width: 300px;
    background: var(--background-color);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.step-card .icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* --- FAQ 常見問題區塊 --- */
#faq {
    background-color: var(--light-gray);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.faq-question::after {
    content: '\f078'; /* Font Awesome down arrow */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}
.faq-question.active::after {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.8;
}

/* --- 頁尾 --- */
.footer {
    background-color: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
    text-align: center;
}

.footer h4 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer a:hover {
    color: #fff;
}
.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}
.footer .disclaimer {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

.article-card {
    display: block; /* 讓 <a> 標籤表現得像區塊元素，才能設定寬高和內距 */
    background: #fff;
    border: 1px solid #e9ecef; /* 淡灰色邊框 */
    padding: 20px;
    border-radius: 8px; /* 圓角 */
    text-decoration: none; /* 移除超連結預設的底線 */
    color: var(--text-color); /* 繼承基礎文字顏色 */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑的過渡動畫 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* subtle shadow */
}

/**
 * 滑鼠懸停在卡片上時的效果
 */
.article-card:hover {
    transform: translateY(-5px); /* 向上微移，創造立體感 */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* 增加陰影，使其更突出 */
}

/**
 * .article-title
 * 文章卡片內的標題樣式。
 * 使用較大的字體和網站的第二主題色來凸顯標題。
 */
.article-title {
    font-size: 1.2rem; /* 標題字體大小 */
    font-weight: 700; /* 粗體 */
    margin-top: 0;
    margin-bottom: 10px; /* 與下方日期的間距 */
    color: var(--secondary-color); /* 使用您設定的第二主題色 (紅色) */
}

/**
 * .article-time
 * 文章發布時間的樣式。
 * 使用較小且柔和的顏色，作為輔助資訊。
 */
.article-time {
    font-size: 0.9rem; /* 字體較小 */
    color: #6c757d; /* 柔和的灰色 */
}

/*
 * ===============================================
 * 文章分頁樣式 (Article Page Styles)
 * 建議將此段程式碼加入您共用的 style.css 檔案中
 * ===============================================
 */

.article-page-container {
    max-width: 800px; /* 設定文章內容的最大寬度，提升可讀性 */
    margin: 40px auto; /* 上下留白，左右置中 */
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-page-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.article-page-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    line-height: 1.3;
    margin: 0;
}

.article-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
}

.article-content {
    line-height: 1.8; /* 增加行高，讓長文易於閱讀 */
    font-size: 1.1rem;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    padding-left: 30px;
}

.article-page-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}



/* --- 動畫 --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- RWD 響應式設計 --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .w-full {width: 100%;}
}

@media (max-width: 768px) {
    .w-full {width: 100%;}
    .navbar .container {
        flex-direction: column;
    }
    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links li { padding: 5px 0; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 2rem; }
    .steps-container {
        flex-direction: column;
        align-items: center;
    }
    .step-card { width: 100%; max-width: 400px; }
    .promo-container { padding: 20px; }
}
