/* 自訂樣式 */
body {
    min-height: 100vh;
    background-color: #1a1a1a;
    /* Matte Black / Deep Charcoal */
    background-image:
        radial-gradient(circle at 50% 0%, #2a2a2a 0%, transparent 70%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    color: #e0e0e0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Clean, professional font */
}

.main-container {
    padding: 2rem 1.5rem;
}

.header-section {
    text-align: center;
    color: #e0e0e0;
    padding: 1.5rem 1.5rem;
    /* margin-bottom: 3rem; */
}

.header-section h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    /* Champagne Gold Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    letter-spacing: 1px;
}

.header-section .subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    color: #a0a0a0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Page Header Styles (for sub-pages) */
.page-header {
    text-align: center;
    padding: 2rem 1rem;
    background: #1a1a1a;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #a0a0a0 !important;
    /* Override inline style if present */
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.8 !important;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: #1e1e1e;
    border: 1px solid #333;
    /* Hairline border */
    border-radius: 4px;
    /* Sharper corners for precision */
    padding: 2rem;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #b38728, transparent);
    /* Gold hairline top border */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: #b38728;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    font-size: 3em;
    margin-bottom: 1rem;
    filter: grayscale(100%) contrast(1.2);
    /* Black and white icon base */
    transition: filter 0.3s ease;
}

.tool-card:hover .tool-icon {
    filter: grayscale(0%) sepia(100%) hue-rotate(5deg) saturate(200%);
    /* Gold tint on hover */
}

.tool-card h2 {
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tool-card p {
    color: #888;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.tool-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 1px solid #b38728;
    border-radius: 2px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
    color: #b38728;
}

.status-active {
    border-color: #b38728;
    color: #b38728;
    background: transparent;
}

.status-coming {
    border-color: #666;
    color: #666;
    background: transparent;
}

.footer-section {
    text-align: center;
    color: #666;
    padding: 3rem 1.5rem;
    margin-top: 3rem;
    opacity: 1;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-top: 1px solid #333;
}

/* 法說會頁面樣式 */
.page-header {
    text-align: center;
    color: #e0e0e0;
    padding: 0.75rem 1rem 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    letter-spacing: 1px;
}

.back-button {
    display: inline-block;
    background-color: transparent;
    color: #b38728;
    padding: 0.4rem 1rem;
    border: 1px solid #b38728;
    border-radius: 2px;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-button:hover {
    background-color: #b38728;
    color: #1a1a1a;
}

/* 導航選單 */
.custom-navbar {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 0;
    box-shadow: none;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    min-height: 3.25rem;
}

.custom-navbar .navbar-brand .navbar-item {
    color: #e0e0e0;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.custom-navbar .navbar-brand .navbar-item:hover {
    color: #b38728;
    background-color: transparent;
}

.custom-navbar .navbar-menu {
    background-color: #1e1e1e;
}

.custom-navbar .navbar-link {
    color: #e0e0e0;
    background-color: transparent;
}

.custom-navbar .navbar-link:hover {
    color: #b38728;
    background-color: transparent;
}

.custom-navbar .navbar-link::after {
    border-color: #b38728;
}

.custom-navbar .navbar-dropdown {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-top: none;
    padding: 0.5rem 0;
}

.custom-navbar .navbar-item {
    color: #888;
    font-weight: 500;
    transition: all 0.3s ease;
}

.custom-navbar .navbar-dropdown .navbar-item {
    color: #888;
    padding: 0.5rem 1rem;
}

.custom-navbar .navbar-item:hover,
.custom-navbar .navbar-dropdown .navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #b38728;
}

.custom-navbar .navbar-item.is-active {
    background-color: #b38728;
    color: #1a1a1a;
    font-weight: 700;
}

/* Active group styling */
.custom-navbar .navbar-item.has-dropdown.is-active-group .navbar-link {
    color: #b38728;
    font-weight: 700;
}

/* Burger menu */
.navbar-burger {
    color: #e0e0e0;
    height: auto;
}

.navbar-burger:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #b38728;
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        padding: 0.5rem;
    }

    .custom-navbar .navbar-dropdown {
        border: none;
        background-color: rgba(0, 0, 0, 0.2);
    }
}

@media screen and (min-width: 1024px) {
    .custom-navbar {
        justify-content: center;
    }

    .custom-navbar .navbar-menu {
        flex-grow: 0;
    }

    .custom-navbar .navbar-start {
        margin-right: 0;
    }
}

.content-box {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.75rem;
    box-shadow: none;
    max-width: 1400px;
    margin: 0 auto;
    /* height: calc(100vh - 260px); */
    overflow-y: auto;
    color: #e0e0e0;
}

.iframe-container {
    width: 100%;
    height: auto;
    min-height: 800px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid #333;
}

.iframe-container iframe {
    width: 100%;
    height: auto;
    min-height: 800px;
    border: none;
}

.page-footer {
    text-align: center;
    color: white;
    padding: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }

    .page-header {
        padding: 0.5rem 0.75rem 0.25rem;
        margin-bottom: 0.5rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .back-button {
        padding: 0.35rem 0.85rem;
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .custom-navbar {
        margin-bottom: 0.75rem;
        padding: 0.35rem;
    }

    .navbar-container {
        gap: 0.35rem;
    }

    .custom-navbar .navbar-item {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }

    .content-box {
        padding: 0.5rem;
        /* height: calc(100vh - 240px); */
    }

    .page-footer {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* 塔羅牌頁面專用樣式 */
.tarot-content {
    overflow-y: auto;
}

.prediction-info {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #1e1e1e;
    border: 1px solid #b38728;
    border-radius: 4px;
    color: #e0e0e0;
    box-shadow: 0 0 15px rgba(179, 135, 40, 0.1);
}

.prediction-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #b38728;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.prediction-date {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    color: #888;
}

.prediction-note {
    font-size: 0.9rem;
    opacity: 0.85;
    font-style: italic;
    color: #666;
}

.prediction-warning {
    font-size: 0.95rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(179, 135, 40, 0.1);
    border: 1px solid #b38728;
    border-radius: 2px;
    font-weight: 600;
    color: #b38728;
}

.loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 2px solid #333;
    border-top-color: #b38728;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.tarot-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-section {
    text-align: center;
}

.period-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #b38728;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tarot-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

.tarot-card:hover {
    transform: translateY(-5px);
    border-color: #b38728;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 2px;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
    border: 1px solid #333;
}

/* 逆位卡片樣式 */
.card-image.reversed {
    transform: rotate(180deg);
}

.card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #888;
    text-align: left;
    font-weight: 300;
}

.action-buttons {
    text-align: center;
    padding: 1.5rem 0;
}

.action-buttons .button {
    font-size: 1.1rem;
    padding: 1.5rem 2.5rem;
    border-radius: 2px;
    font-weight: 700;
    background: transparent;
    border: 1px solid #b38728;
    color: #b38728;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.action-buttons .button:hover {
    transform: translateY(-2px);
    background: #b38728;
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(179, 135, 40, 0.4);
}

@media (max-width: 768px) {
    .prediction-title {
        font-size: 1.4rem;
    }

    .tarot-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-image {
        max-width: 180px;
    }

    .action-buttons .button {
        font-size: 1rem;
        padding: 1.2rem 2rem;
    }
}

.quiz-content {
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.quiz-screen {
    padding: 2rem;
}

/* 開始畫面 */
.quiz-intro {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quiz-title {
    font-size: 2rem;
    font-weight: 700;
    color: #b38728;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.quiz-description {
    text-align: left;
    background: #1e1e1e;
    padding: 1.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quiz-description p {
    margin-bottom: 1rem;
    color: #888;
}

.quiz-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.quiz-features li {
    padding: 0.5rem 0;
    color: #b38728;
    font-weight: 600;
}

.start-button {
    font-size: 1.3rem;
    padding: 1.5rem 3rem;
    border-radius: 2px;
    font-weight: 700;
    background: transparent;
    border: 1px solid #b38728;
    color: #b38728;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-button:hover {
    transform: translateY(-2px);
    background: #b38728;
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(179, 135, 40, 0.4);
}

/* 進度條 */
.progress-bar {
    position: relative;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #b38728;
    transition: width 0.3s ease;
    width: 5%;
    box-shadow: 0 0 10px rgba(179, 135, 40, 0.5);
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    left: auto;
    transform: none;
    font-weight: 700;
    color: #b38728;
    text-shadow: none;
    font-size: 0.9rem;
}

/* 問題容器 */
.question-container {
    margin-bottom: 2rem;
}

.question-number {
    font-size: 1rem;
    font-weight: 600;
    color: #b38728;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 選項容器 */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-button {
    width: 100%;
    padding: 1.2rem 1.5rem;
    text-align: left;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #888;
    position: relative;
}

.option-button:hover {
    border-color: #b38728;
    background: #2a2a2a;
    transform: translateX(5px);
    color: #e0e0e0;
}

.option-button.selected {
    border-color: #b38728;
    background: rgba(179, 135, 40, 0.1);
    font-weight: 600;
    color: #b38728;
}

.option-button.selected::after {
    content: "✓";
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b38728;
    font-weight: 700;
    font-size: 1.3rem;
}

/* 導航按鈕 */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.quiz-navigation .button {
    flex: 1;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 2px;
    background: transparent;
    border: 1px solid #666;
    color: #888;
    transition: all 0.3s ease;
}

.quiz-navigation .button:hover {
    border-color: #b38728;
    color: #b38728;
}

.quiz-navigation .button.is-primary {
    border-color: #b38728;
    color: #b38728;
}

.quiz-navigation .button.is-primary:hover {
    background: #b38728;
    color: #1a1a1a;
}

/* 結果畫面 */
.result-container {
    max-width: 800px;
    margin: 0 auto;
}

.result-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #1e1e1e;
    border: 1px solid #b38728;
    border-radius: 4px;
    color: #e0e0e0;
    box-shadow: 0 0 20px rgba(179, 135, 40, 0.1);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: grayscale(100%) contrast(1.2);
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #888;
}

.result-type {
    font-size: 2rem;
    font-weight: 700;
    color: #b38728;
    text-shadow: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.result-details {
    margin-bottom: 2rem;
}

.result-section {
    background: #1e1e1e;
    padding: 1.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.result-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b38728;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.result-section p {
    line-height: 1.8;
    color: #888;
}

.result-section ul {
    list-style: none;
    padding: 0;
}

.result-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
    line-height: 1.6;
}

.result-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #b38728;
    font-weight: 700;
}

.investment-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid #b38728;
    border-radius: 2px;
    color: #b38728;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.result-actions .button {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 2px;
    background: transparent;
    border: 1px solid #666;
    color: #888;
    transition: all 0.3s ease;
}

.result-actions .button:hover {
    border-color: #b38728;
    color: #b38728;
}

.result-actions .button.is-primary {
    border-color: #b38728;
    color: #b38728;
}

.result-actions .button.is-primary:hover {
    background: #b38728;
    color: #1a1a1a;
}

/* 測驗頁面響應式設計 */
@media (max-width: 768px) {
    .quiz-screen {
        padding: 1rem;
    }

    .quiz-title {
        font-size: 1.5rem;
    }

    .start-button {
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
    }

    .question-text {
        font-size: 1.1rem;
    }

    .option-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .result-icon {
        font-size: 3rem;
    }

    .result-type {
        font-size: 1.5rem;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .button {
        width: 100%;
    }

    .quiz-navigation {
        flex-direction: column;
    }
}

/* 影片轉講義頁面專用樣式 */
.video-content {
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.section-card {
    background: #1e1e1e;
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: none;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b38728;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 上傳區域 */
.upload-area {
    border: 1px dashed #b38728;
    border-radius: 4px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1a1a;
}

.upload-area:hover,
.upload-area.dragover {
    background: rgba(179, 135, 40, 0.05);
    border-color: #e0e0e0;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: grayscale(100%);
}

.upload-area:hover .upload-icon {
    filter: grayscale(0%) sepia(100%) hue-rotate(5deg) saturate(200%);
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.9rem;
    color: #888;
}

/* 影片預覽 */
.video-preview-container {
    margin-bottom: 2rem;
}

.video-preview-container video {
    width: 100%;
    max-height: 400px;
    border-radius: 2px;
    background: #000;
    border: 1px solid #333;
}

/* 設定網格 */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.setting-item {
    display: flex;
    flex-direction: column;
}

.setting-label {
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.setting-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
}

/* 進度容器 */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    height: 100%;
    background: #b38728;
    transition: width 0.3s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(179, 135, 40, 0.5);
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #b38728;
    font-size: 1rem;
}

.processing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 2px;
    text-align: center;
    border: 1px solid #333;
}

.info-label {
    font-weight: 600;
    color: #888;
    display: block;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b38728;
}

/* 預覽結果 */
.preview-summary {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 1.5rem;
}

.preview-summary span {
    color: #b38728;
    font-size: 1.3rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.preview-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    border-color: #b38728;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.preview-item:hover img {
    filter: grayscale(0%);
}

.preview-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #b38728;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-top: 1px solid #333;
}

/* 使用說明 */
.help-section {
    background: #1a1a1a;
    border: 1px solid #333;
}

.help-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #333;
}

.help-item:last-child {
    border-bottom: none;
}

.help-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid #b38728;
    color: #b38728;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.help-text {
    flex: 1;
}

.help-text strong {
    display: block;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.help-text p {
    color: #888;
    line-height: 1.6;
    margin: 0;
}

.help-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1e1e1e;
    border-left: 4px solid #b38728;
    border-radius: 2px;
    box-shadow: none;
}

.help-note p {
    margin: 0 0 1rem 0;
    color: #888;
}

.help-note strong {
    color: #b38728;
    font-size: 1.05rem;
}

.help-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-note ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #888;
    line-height: 1.6;
}

.help-note ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #b38728;
    font-weight: 700;
}

/* 音訊提取頁面樣式 */
.audio-content {
    padding: 2rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* 影片資訊網格 */
.video-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.video-info-grid .info-item {
    background: #1a1a1a;
    padding: 1.25rem;
    border-radius: 2px;
    border: 1px solid #333;
}

.video-info-grid .info-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.5rem;
}

.video-info-grid .info-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #b38728;
    word-break: break-all;
}

/* 格式選擇 */
.format-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.format-option {
    cursor: pointer;
}

.format-option input[type="radio"] {
    display: none;
}

.format-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.format-option input[type="radio"]:checked+.format-card {
    border-color: #b38728;
    background: rgba(179, 135, 40, 0.05);
    box-shadow: 0 0 15px rgba(179, 135, 40, 0.2);
}

.format-card:hover {
    border-color: #b38728;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.format-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #888;
}

.format-option input[type="radio"]:checked+.format-card .format-icon {
    color: #b38728;
}

.format-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.format-desc {
    font-size: 0.9rem;
    color: #888;
}

/* 操作按鈕 */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-buttons .button {
    min-width: 200px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-buttons .button.is-primary {
    background: transparent;
    border: 1px solid #b38728;
    color: #b38728;
}

.action-buttons .button.is-primary:hover {
    transform: translateY(-2px);
    background: #b38728;
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(179, 135, 40, 0.4);
}

.action-buttons .button.is-success {
    background: transparent;
    border: 1px solid #48bb78;
    color: #48bb78;
}

.action-buttons .button.is-success:hover {
    transform: translateY(-2px);
    background: #48bb78;
    color: #1a1a1a;
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.4);
}

/* 結果顯示 */
.result-info {
    margin-bottom: 2rem;
}

.result-message {
    font-size: 1.3rem;
    font-weight: 600;
    color: #48bb78;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 4px;
    border: 1px solid #48bb78;
}

.audio-preview {
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 1rem;
}

.audio-preview audio {
    width: 100%;
    border-radius: 4px;
    background: #333;
    padding: 0.5rem;
}

.audio-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.audio-info-grid .info-item {
    background: #1a1a1a;
    padding: 1.25rem;
    border-radius: 2px;
    border: 1px solid #333;
    text-align: center;
}

.audio-info-grid .info-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 0.5rem;
}

.audio-info-grid .info-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #48bb78;
}

/* 鉅額交易頁面樣式 */
.block-trades-content {
    height: auto;
    min-height: 500px;
    padding: 2rem;
    margin-bottom: 2rem;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 4px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid #b38728;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #b38728;
    font-weight: 600;
    letter-spacing: 1px;
}

/* DataTables Dark Mode Customization */
.dataTables_wrapper {
    color: #e0e0e0 !important;
    padding: 1rem 0;
}

table.dataTable {
    color: #e0e0e0 !important;
    border-collapse: collapse !important;
    background: #1a1a1a !important;
    border: 1px solid #333;
}

table.dataTable thead th {
    background: #1e1e1e !important;
    color: #b38728 !important;
    border-bottom: 1px solid #b38728 !important;
    font-weight: 600;
    padding: 1rem !important;
}

table.dataTable tbody td {
    background: #1a1a1a !important;
    border-bottom: 1px solid #333 !important;
    padding: 0.75rem 1rem !important;
    color: #ccc !important;
}

table.dataTable tbody tr:hover td {
    background: #252525 !important;
    color: #fff !important;
}

/* DataTables Controls */
.dataTables_length select,
.dataTables_filter input {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #e0e0e0 !important;
    padding: 0.5rem !important;
    border-radius: 2px !important;
}

.dataTables_length select:focus,
.dataTables_filter input:focus {
    border-color: #b38728 !important;
    outline: none;
}

.dataTables_info {
    color: #888 !important;
}

.dataTables_paginate .paginate_button {
    background: transparent !important;
    color: #888 !important;
    border: 1px solid #333 !important;
    border-radius: 2px !important;
    margin: 0 2px !important;
}

.dataTables_paginate .paginate_button:hover {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #b38728 !important;
}

.dataTables_paginate .paginate_button.current {
    background: #b38728 !important;
    color: #1a1a1a !important;
    border: 1px solid #b38728 !important;
    font-weight: 600;
}

.dataTables_paginate .paginate_button.disabled {
    color: #444 !important;
    border-color: #222 !important;
}

/* Tags styling override */
.tags .tag.is-dark {
    background: #333;
    color: #e0e0e0;
}

.tags .tag.is-light {
    background: #1a1a1a;
    color: #b38728;
    border: 1px solid #333;
}

/* Button override */
#reloadBtn {
    background: transparent;
    border: 1px solid #b38728;
    color: #b38728;
    transition: all 0.3s ease;
}

#reloadBtn:hover {
    background: #b38728;
    color: #1a1a1a;
}

/* AAII 情緒頁面樣式 */
.chart-container {
    position: relative;
    height: 600px;
    width: 100%;
    margin-bottom: 2rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 1rem;
}

.info-box {
    background: #1e1e1e;
    border: 1px solid #333;
    border-left: 4px solid #b38728;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.update-time {
    color: #b38728;
    font-weight: 600;
    font-size: 1.1rem;
}

.instructions h3 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.instructions ul li {
    color: #888;
    margin-bottom: 0.5rem;
}

.instructions ul li strong {
    color: #b38728;
}

/* Bulma Tabs Override */
.tabs.is-boxed {
    margin-bottom: 2rem;
}

.tabs.is-boxed ul {
    border-bottom-color: #333;
}

.tabs.is-boxed li a {
    background: #1a1a1a;
    border: 1px solid #333;
    border-bottom-color: #333;
    color: #888;
    transition: all 0.3s ease;
}

.tabs.is-boxed li a:hover {
    background: #252525;
    border-bottom-color: #333;
    color: #e0e0e0;
}

.tabs.is-boxed li.is-active a {
    background: #1e1e1e;
    border-color: #333;
    border-bottom-color: #1e1e1e !important;
    color: #b38728;
    font-weight: 600;
}

/* 響應式設計 */
@media (max-width: 1200px) {
    .preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .video-content {
        max-height: calc(100vh - 260px);
    }

    .audio-content {
        padding: 1rem;
    }

    .section-card {
        padding: 1.5rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .processing-info {
        grid-template-columns: 1fr;
    }

    .video-info-grid,
    .audio-info-grid {
        grid-template-columns: 1fr;
    }

    .format-options {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .button {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Table Highlight */
.is-today-highlight {
    background-color: #b38728 !important;
    /* Solid Gold */
    color: #000000 !important;
    /* Black text for contrast */
    font-weight: bold;
}

.is-today-highlight a {
    color: #000000 !important;
    /* Black links */
    text-decoration: underline;
}