<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TTVS 資科競賽檢定練習系統</title>
    <link rel="icon" href="https://i.imgur.com/P3EVpnQ.png" type="image/png">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.6.3/css/foundation.min.css">
    <script src="https://www.gstatic.com/firebasejs/9.1.2/firebase-app.js"></script>
    <script src="https://www.gstatic.com/firebasejs/9.1.2/firebase-auth.js"></script>
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-XELSWLMFDR"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-XELSWLMFDR');
</script>
    <script>
      
        window.onload = function() {
          
            if (localStorage.getItem('isLoggedIn') !== 'true') {
              
                alert('由於您尚未登入，按下確定後將返回至首頁進行登入。');
             
                window.location.href = '../../index.html';
            }
        };
    </script>
    <style>
        body {
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f4f8;
    color: #333;
}

.quiz-container {
    max-width: 600px;
    margin: auto;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

h1 {
    color: #007aff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 26px;
}

.btn {
    margin: 5px;
    border-radius: 20px;
    padding: 10px 20px;
}

.btn-primary {
    background-color: #007aff;
    border: none;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #0051a8;
    transform: scale(1.05);
}

.btn-outline-primary {
    border: 2px solid #007aff;
    color: #007aff;
    background-color: white;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-outline-primary:hover {
    background-color: #007aff;
    color: white;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

.question {
    margin-top: 20px;
}

.result-section {
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
}

.result-section p {
    margin: 10px 0;
}


footer {
    text-align: center;
    padding: 15px 0;

    color: #333; 
    margin-top: 20px; 
    border-top: 1px solid #ddd; 
}

footer a {
    color: #007aff;
    text-decoration: none; 
}

footer a:hover {
    text-decoration: underline; 
}

    </style>

</head>
<body>
    <div class="quiz-container">
        <h1 class="text-center">商業類專業英文詞彙測驗</h1>

        <div id="quiz-container"></div>

        <div id="results" class="hidden">
            <h3>測驗結果</h3>
            <p id="score-details"></p>
            <p id="total-score"></p>
        </div>

        <div class="text-center mt-4">
            <button id="nextBtn" class="btn btn-success hidden" onclick="nextQuestion()">下一題</button>
        </div>
    </div>

    <script src="../../java/pvqcbusinessexamdata.js"></script>
    <script>
        const totalQuizzes = 5; 
const questionsPerQuiz = 20;
const pointsPerQuestion = 1; 
let currentQuiz = 1;
let currentQuestionIndex = 0;
let totalScore = 0;
let quizScores = [0, 0, 0, 0, 0]; 
let answeredQuestions = Array(questionsPerQuiz).fill(false); 
const wordBank = [
    { english: 'a free sample', chinese: '免費樣品' },
    { english: 'ability', chinese: '有能力' },
    { english: 'absorb', chinese: '吸引；承擔' },
    { english: 'abuse', chinese: '濫用；弊端' },
    { english: 'AC', chinese: '平均成本（英文簡稱）' },
    { english: 'accept', chinese: '接受' },
    { english: 'acceptance', chinese: '承兌；接受；同意' },
    { english: 'accommodation', chinese: '住宿（處）；適應' },
    { english: 'account', chinese: '客戶；帳戶' },
    { english: 'account number', chinese: '帳戶號碼' },
    { english: 'accounting cost', chinese: '會計成本' },
    { english: 'accounting period', chinese: '會計期間' },
    { english: 'accounting profit', chinese: '會計利潤' },
    { english: 'accounts payable', chinese: '應付帳款' },
    { english: 'accounts receivable', chinese: '應收帳款' },
    { english: 'accumulate', chinese: '累積' },
    { english: 'achievement', chinese: '成就' },
    { english: 'acid test', chinese: '嚴苛考驗；酸性試驗' },
    { english: 'act as host', chinese: '（充當）主持；做東' },
    { english: 'active', chinese: '活躍的；積極的' },
    { english: 'activity', chinese: '活動（力）；行動' },
    { english: 'ad', chinese: '廣告（英文簡稱）' },
    { english: 'ad agency', chinese: '廣告代理商' },
    { english: 'adjustment', chinese: '理賠；調整' },
    { english: 'advance', chinese: '預付；進階' },
    { english: 'advance payment', chinese: '預付款項；預付貨款' },
    { english: 'advantage', chinese: '優勢；利益' },
    { english: 'advertise', chinese: '登廣告；宣傳；通知' },
    { english: 'advertisement', chinese: '廣告；公告；啟事' },
    { english: 'advertiser', chinese: '刊登廣告者；廣告客戶' },
    { english: 'advertising', chinese: '廣告（業）；登廣告' },
    { english: 'advertising budget', chinese: '廣告預算' },
    { english: 'advertising company', chinese: '廣告公司' },
    { english: 'AE', chinese: '總支出（英文簡稱）' },
    { english: 'AFB', chinese: '航空提單（英文簡稱）' },
    { english: 'AFC', chinese: '平均固定成本' },
    { english: 'agency', chinese: '代理' },
    { english: 'agency problem', chinese: '代理問題' },
    { english: 'agenda', chinese: '議程' },
    { english: 'agent', chinese: '代理人；代理商' },
    { english: 'agree on', chinese: '同意；商定' },
    { english: 'airtime', chinese: '播放時間' },
    { english: 'allowance', chinese: '折價；津貼；限額' },
    { english: 'amendment', chinese: '修正' },
    { english: 'amortization', chinese: '攤銷；攤還' },
    { english: 'amount', chinese: '總額；數量' },
    { english: 'amount of money', chinese: '或；金額' },
    { english: 'analysis', chinese: '分析' },
    { english: 'analyst', chinese: '分析師' },
    { english: 'analyzer', chinese: '分析人員；分析器' },
    { english: 'annual fee', chinese: '年費' },
    { english: 'annual report', chinese: '年報' },
    { english: 'annual revenue', chinese: '歲入；年收入' },
    { english: 'anticipate', chinese: '期望；預期' },
    { english: 'anticipation', chinese: '預期' },
    { english: 'anxious', chinese: '焦慮的；擔心的' },
    { english: 'AP', chinese: '平均產量；應付帳款' },
    { english: 'APEC', chinese: '亞太經濟合作會議' },
    { english: 'apex', chinese: '頂點' },
    { english: 'apologize', chinese: '道歉' },
    { english: 'appreciate', chinese: '欣賞；感謝；體會' },
    { english: 'appreciation', chinese: '增值；感激；鑑賞' },
    { english: 'AR', chinese: '平均收益；應收帳款' },
    { english: 'arrangement', chinese: '安排；約定' },
    { english: 'arrear', chinese: '拖欠金額' },
    { english: 'arson', chinese: '縱火（罪）' },
    { english: 'AS', chinese: '總供給' },
    { english: 'ASEAN', chinese: '東南亞國家聯盟' },
    { english: 'asking price', chinese: '要價；開價' },
    { english: 'asset', chinese: '資產' },
    { english: 'assignment', chinese: '讓渡；指派；任務' },
    { english: 'ATM', chinese: '自動櫃員（提款）' },
    { english: 'ATM card', chinese: '自動提款卡' },
    { english: 'ATM transfer', chinese: '自動櫃員機轉帳' },
    { english: 'attend', chinese: '參加；出席' },
    { english: 'attendant', chinese: '參加者' },
    { english: 'attendee', chinese: '出席者' },
    { english: 'attn.', chinese: '承辦人' },
    { english: 'auction off', chinese: '拍賣掉…' },
    { english: 'audience', chinese: '聽眾；觀眾' },
    { english: 'audit', chinese: '審計；查帳' },
    { english: 'auditor', chinese: '稽核員' },
    { english: 'autograph', chinese: '簽名' },
    { english: 'AVC', chinese: '平均變動成本' },
    { english: 'average', chinese: '平均' },
    { english: 'average cost', chinese: '平均成本' },
    { english: 'average product', chinese: '平均產量' },
    { english: 'average revenue', chinese: '平均收益' },
    { english: 'B/L', chinese: '提貨單' },
    { english: 'B2B', chinese: '企業對企業' },
    { english: 'B2C', chinese: '企業對個人' },
    { english: 'back stock', chinese: '備貨；存貨' },
    { english: 'bad check', chinese: '空頭支票' },
    { english: 'bad debt', chinese: '壞帳；呆帳' },
    { english: 'bad seller', chinese: '滯銷貨' },
    { english: 'baggage claim', chinese: '行李提領處' },
    { english: 'baggage tag', chinese: '行李牌' },
    { english: 'Baht', chinese: '泰銖（泰國貨幣單位）' },
    { english: 'balance', chinese: '（收支）平衡；結餘' },
    { english: 'balance sheet', chinese: '資產負債表' },
    { english: 'bank', chinese: '銀行' },
    { english: 'bank account', chinese: '銀行帳戶' },
    { english: 'bank clerk', chinese: '銀行行（職）員' },
    { english: 'bank draft', chinese: '銀行匯票；銀行本票' },
    { english: 'bank holiday', chinese: '銀行公休日；國定假日' },
    { english: 'bank statement', chinese: '銀行對帳單' },
    { english: 'bank teller', chinese: '銀行出納員' },
    { english: 'bankbook', chinese: '存摺' },
    { english: 'banker', chinese: '銀行家' },
    { english: 'banking', chinese: '銀行業務' },
    { english: 'banking hours', chinese: '銀行營業時間' },
    { english: 'banknote', chinese: '鈔票；紙鈔' },
    { english: 'banner', chinese: '旗幟；橫幅（標題）' },
    { english: 'bar code', chinese: '條碼' },
    { english: 'barrier', chinese: '障礙（物）' },
    { english: 'base money', chinese: '基礎貨幣' },
    { english: 'basic product', chinese: '基本產品' },
    { english: 'BC', chinese: '託收（英文簡稱）' },
    { english: 'BD', chinese: '貼現票據' },
    { english: 'bear market', chinese: '熊市' },
    { english: 'bearer', chinese: '無記名的' },
    { english: 'behind of schedule', chinese: '進度落後' },
    { english: 'bellwether', chinese: '指標證券' },
    { english: 'bellwether stock', chinese: '指標股；龍頭股' },
    { english: 'beneficiary', chinese: '受益人' },
    { english: 'benefit', chinese: '利益；津貼' },
    { english: 'best seller', chinese: '暢銷品' },
    { english: 'best-selling', chinese: '暢銷的' },
    { english: 'BI', chinese: '期初存貨' },
    { english: 'bid', chinese: '出價；投標' },
    { english: 'bid price', chinese: '買價；買進報價' },
    { english: 'bidder', chinese: '競標者' },
    { english: 'bilateral', chinese: '雙邊的' },
    { english: 'bill', chinese: '帳單；票據' },
    { english: 'bill for collection', chinese: '託收' },
    { english: 'billboard', chinese: '廣告看板' },
    { english: 'bills discounted', chinese: '貼現票據' },
    { english: 'biweekly', chinese: '兩週一次的' },
    { english: 'blacklist', chinese: '黑名單' },
    { english: 'blockade', chinese: '封鎖；障礙物' },
    { english: 'boarding gate', chinese: '登機門' },
    { english: 'boarding pass', chinese: '登機證' },
    { english: 'body clock', chinese: '生理時鐘' },
    { english: 'BOL', chinese: '提單（英文簡稱）' },
    { english: 'bond', chinese: '債券；公債' },
    { english: 'bond fund', chinese: '債券型基金' },
    { english: 'bond index', chinese: '債券指數' },
    { english: 'bond interest', chinese: '債券利息' },
    { english: 'bond issuer', chinese: '債券發行者' },
    { english: 'book value', chinese: '帳面價值淨值' },
    { english: 'boom', chinese: '景氣；繁榮' },
    { english: 'boost', chinese: '促進；推動' },
    { english: 'booth', chinese: '攤位' },
    { english: 'BOP', chinese: '收支平衡' },
    { english: 'bottleneck', chinese: '瓶頸；障礙物' },
    { english: 'bottom out', chinese: '止跌回穩' },
    { english: 'bounce', chinese: '跳（票）；彈性' },
    { english: 'boycott', chinese: '（聯合）抵制' },
    { english: 'brainpower', chinese: '腦力智囊（團）' },
    { english: 'branch', chinese: '分公司' },
    { english: 'brand', chinese: '商標；品牌' },
    { english: 'brand image', chinese: '品牌形象' },
    { english: 'brand loyalty', chinese: '品牌忠誠度' },
    { english: 'brand recognition', chinese: '品牌認同' },
    { english: 'brand value', chinese: '品牌價值' },
    { english: 'brand-new', chinese: '全新的' },
    { english: 'break down', chinese: '打破；失敗' },
    { english: 'broadcast', chinese: '播放；散布' },
    { english: 'brochure', chinese: '小冊子' },
    { english: 'broker', chinese: '經紀人' },
    { english: 'brokerage', chinese: '佣金' },
    { english: 'BS', chinese: '資產負債表' },
    { english: 'bubble', chinese: '泡沫' },
    { english: 'buffet', chinese: '自助餐' },
    { english: 'buffet restaurant', chinese: '自助式餐廳' },
    { english: 'building', chinese: '房屋；建築' },
    { english: 'bulk', chinese: '大量的；散裝的' },
    { english: 'bull market', chinese: '牛市；多頭市場' },
    { english: 'bullish', chinese: '看漲的；樂觀的' },
    { english: 'bundle', chinese: '捆（綁）搭售組合' },
    { english: 'burst', chinese: '破滅；爆炸' },
    { english: 'business', chinese: '商業；商務；貿易' },
    { english: 'business center', chinese: '商務中心' },
    { english: 'business cycle', chinese: '景氣循環；商業循環' },
    { english: 'business meal', chinese: '商務餐（會）' },
    { english: 'business plan', chinese: '創業計畫；營運計畫' },
    { english: 'business suite', chinese: '商務套房' },
    { english: 'business-to-business', chinese: '企業對企業（全文）' },
    { english: 'business-to-customer', chinese: '企業對個人（全文）' },
    { english: 'business unit', chinese: '事業部門' },
    { english: 'buyer', chinese: '買方' },
    { english: 'C&F', chinese: '運費在內價' },
    { english: 'C&I', chinese: '保險在內價' },
    { english: 'C.S.', chinese: '消費者剩餘' },
    { english: 'C2B', chinese: '個人對企業' },
    { english: 'C2C', chinese: '個人對個人' },
    { english: 'CA', chinese: '收款報單；貨記通知書' },
    { english: 'campaign', chinese: '宣傳活動' },
    { english: 'cancel', chinese: '取消；終（中）止' },
    { english: 'cancellation', chinese: '取消；作廢' },
    { english: 'capacity', chinese: '能力；產量' },
    { english: 'capital', chinese: '資本' },
    { english: 'capital account', chinese: '資本帳' },
    { english: 'capital assets', chinese: '資本資產' },
    { english: 'capital market', chinese: '資本市場' },
    { english: 'capital stock', chinese: '股本' },
    { english: 'capitalist', chinese: '資本主義' },
    { english: 'CAPS', chinese: '電子（標籤）' },
    { english: 'cardholder', chinese: '持卡人' },
    { english: 'career', chinese: '生涯；經歷' },
    { english: 'carriage', chinese: '運費；運輸' },
    { english: 'carrier', chinese: '運輸業者' },
    { english: 'carry on', chinese: '繼續；經營' },
    { english: 'cartel', chinese: '卡特爾；企業聯合' },
    { english: 'cash', chinese: '現金' },
    { english: 'cash a check', chinese: '（將支票）兌現' },
    { english: 'cash card', chinese: '提款卡；現金卡' },
    { english: 'cash discount', chinese: '現金折扣' },
    { english: 'cash flow', chinese: '現金流量' },
    { english: 'cash in advance', chinese: '預付貨款' },
    { english: 'cash on delivery', chinese: '貨到付現' },
    { english: 'cash payment', chinese: '現金支付' },
    { english: 'cash transaction', chinese: '現金交易' },
    { english: 'cashier', chinese: '出納員' },
    { english: 'catalog', chinese: '型錄' },
    { english: 'category', chinese: '種類；類別' },
    { english: 'CC', chinese: '合作加盟連鎖' },
    { english: 'CD', chinese: '定期存款單' },
    { english: 'CDW', chinese: '碰撞意外免責險' },
    { english: 'central bank', chinese: '中央銀行' },
    { english: 'chain', chinese: '鏈（子）；一連串' },
    { english: 'channel', chinese: '途徑；通路；頻道' },
    { english: 'character', chinese: '性格；特色；品德' },
    { english: 'charge', chinese: '費用' },
    { english: 'charge card', chinese: '簽帳卡' },
    { english: 'charitable', chinese: '仁慈的' },
    { english: 'cheat', chinese: '欺騙' },
    { english: 'check', chinese: '支票' },
    { english: 'check card', chinese: '支票（帳戶）卡' },
    { english: 'check in', chinese: '報到；（行李）託運' },
    { english: 'checkbook', chinese: '支票簿' },
    { english: 'chip', chinese: '晶片；碎片' },
    { english: 'choice', chinese: '選擇；選擇權' },
    { english: 'choose', chinese: '選擇' },
    { english: 'CLF', chinese: '保費運費在內價' },
    { english: 'cigarette', chinese: '香菸' },
    { english: 'circulation', chinese: '循環' },
    { english: 'CIS', chinese: '企業識別系統' },
    { english: 'civilian', chinese: '平民' },
    { english: 'CL', chinese: '託收（英文簡稱）' },
    { english: 'claim', chinese: '索賠' },
    { english: 'classical', chinese: '古典的；標準的' },
    { english: 'classified ad', chinese: '分類廣告' },
    { english: 'clause', chinese: '條款' },
    { english: 'clearing', chinese: '票據清算' },
    { english: 'click rate', chinese: '點閱率' },
    { english: 'client', chinese: '客戶；顧客' },
    { english: 'client development', chinese: '客戶開發' },
    { english: 'climb', chinese: '攀升' },
    { english: 'COD', chinese: '貨到付款' },
    { english: 'coincident', chinese: '同時發生的' },
    { english: 'collateral', chinese: '擔保品' },
    { english: 'collection', chinese: '託收；收集' },
    { english: 'come to', chinese: '總計' },
    { english: 'comeback', chinese: '重整旗鼓' },
    { english: 'comfortable', chinese: '舒適的' },
    { english: 'commercial', chinese: '商業廣告' },
    { english: 'commission', chinese: '佣金' },
    { english: 'commodity', chinese: '商品' },
    { english: 'common stock', chinese: '普通股' },
    { english: 'communication', chinese: '溝通' },
    { english: 'community', chinese: '社群' },
    { english: 'company', chinese: '公司' },
    { english: 'company time', chinese: '上班時間' },
    { english: 'compare', chinese: '比較' },
    { english: 'compensate', chinese: '賠償' },
    { english: 'compensation', chinese: '待遇' },
    { english: 'compete', chinese: '競爭' },
    { english: 'competition', chinese: '競爭' },
    { english: 'competitive', chinese: '有競爭力的' },
    { english: 'competitive edge', chinese: '競爭優勢' },
    { english: 'competitor', chinese: '競爭者' },
    { english: 'compile', chinese: '彙編；收集' },
    { english: 'complaint', chinese: '抱怨' },
    { english: 'complete', chinese: '完成的' },
    { english: 'comply', chinese: '依照' },
    { english: 'compromise', chinese: '妥協' },
    { english: 'compulsory', chinese: '強制性的' },
    { english: 'computer system', chinese: '電腦系統' },
    { english: 'condition', chinese: '條件；經濟狀況' },
    { english: 'conditional', chinese: '有條件的' },
    { english: 'confirm', chinese: '確認' },
    { english: 'confirmation', chinese: '確認' },
    { english: 'confiscate', chinese: '沒收' },
    { english: 'conflict', chinese: '矛盾' },
    { english: 'consign', chinese: '寄售' },
    { english: 'consignee', chinese: '收件人；收貨人' },
    { english: 'consigner', chinese: '發貨人；託運人' },
    { english: 'constant', chinese: '固定不變的' },
    { english: 'consumable goods', chinese: '消耗財' },
    { english: 'consumer', chinese: '消費者' },
    { english: 'consumer base', chinese: '消費群' },
    { english: 'consumption', chinese: '消費' },
    { english: 'container', chinese: '貨櫃' },
    { english: 'continue', chinese: '繼續' },
    { english: 'contra', chinese: '相反事物' },
    { english: 'contract', chinese: '契約' },
    { english: 'contribute', chinese: '捐獻' },
    { english: 'convention', chinese: '大會' },
    { english: 'convention center', chinese: '會議中心' },
    { english: 'convention hall', chinese: '會議廳' },
    { english: 'cooperate', chinese: '合作' },
    { english: 'cooperate chain', chinese: '合作加盟連鎖' },
    { english: 'copayment', chinese: '部分負擔' },
    { english: 'copyright', chinese: '著作權' },
    { english: 'copywriter', chinese: '廣告文宣撰寫人員' },
    { english: 'core product', chinese: '核心產品' },
    { english: 'corporate', chinese: '公司的' },
    { english: 'corporation', chinese: '法人；股份' },
    { english: 'cost', chinese: '成本' },
    { english: 'counsel', chinese: '商議；勸告' },
    { english: 'counseling', chinese: '諮詢' },
    { english: 'coupon', chinese: '優待券' },
    { english: 'courier', chinese: '快遞員；導遊' },
    { english: 'courtesy', chinese: '禮貌' },
    { english: 'CP', chinese: '租船契約' },
    { english: 'CPI', chinese: '消費者物價指數' },
    { english: 'CPT', chinese: '運費付至…' },
    { english: 'crack', chinese: '瑕疵' },
    { english: 'crash', chinese: '崩跌' },
    { english: 'creative', chinese: '有創意的' },
    { english: 'credit', chinese: '貸方；銀行存款；信譽' },
    { english: 'credit card', chinese: '信用卡' },
    { english: 'credit card number', chinese: '信用卡號碼' },
    { english: 'credit report', chinese: '信用調查報告' },
    { english: 'crisis', chinese: '危機' },
    { english: 'cross', chinese: '交叉的' },
    { english: 'cross-training', chinese: '交叉訓練' },
    { english: 'CRP', chinese: '自動補貨系統' },
    { english: 'crucial', chinese: '很重要的' },
    { english: 'CSR', chinese: '企業社會責任' },
    { english: 'currency', chinese: '貨幣' },
    { english: 'currency exchange', chinese: '匯兌' },
    { english: 'current', chinese: '現行的' },
    { english: 'curve', chinese: '曲線' },
    { english: 'custody', chinese: '保管；監護' },
    { english: 'customary', chinese: '習慣上的' },
    { english: 'customer', chinese: '消費者；客戶' },
    { english: 'customer base', chinese: '顧客群；客源' },
    { english: 'customer-to-business', chinese: '個人對企業' },
    { english: 'customer-to-customer', chinese: '個人對個人' },
    { english: 'custom-made', chinese: '客製化' },
    { english: 'Customs', chinese: '海關' },
    { english: 'Customs broker', chinese: '報關行' },
    { english: 'customs duty', chinese: '關稅' },
    { english: 'CWO', chinese: '下訂單時付現' },
    { english: 'cycle', chinese: '週期' },
    { english: 'cyclical', chinese: '週期性的' },
    { english: 'D/O', chinese: '到港通知；出貨單' },
    { english: 'DAF', chinese: '邊境交貨' },
    { english: 'damage', chinese: '損害；賠償金' },
    { english: 'damage control', chinese: '危機處理' },
    { english: 'data analysis', chinese: '數據分析' },
    { english: 'DDP', chinese: '完稅後交貨' },
    { english: 'deadline', chinese: '截止日期' },
    { english: 'deal', chinese: '交易' },
    { english: 'debit', chinese: '借方' },
    { english: 'debit balance', chinese: '借方餘額' },
    { english: 'debit card', chinese: '轉帳卡' },
    { english: 'debt', chinese: '債務' },
    { english: 'debtor', chinese: '債務人' },
    { english: 'decision', chinese: '決定' },
    { english: 'declaration', chinese: '聲明' },
    { english: 'decline', chinese: '下跌' },
    { english: 'decrease', chinese: '降低' },
    { english: 'deduct', chinese: '扣除' },
    { english: 'deduction', chinese: '扣除；扣除（稅）額' },
    { english: 'default', chinese: '違約；棄權' },
    { english: 'defer', chinese: '延遲；延期' },
    { english: 'deficit', chinese: '赤字；虧損' },
    { english: 'delay', chinese: '延遲' },
    { english: 'delay payment', chinese: '延遲支付' },
    { english: 'delayed delivery', chinese: '延期交貨' },
    { english: 'deliver', chinese: '運送' },
    { english: 'delivery', chinese: '運送' },
    { english: 'delivery date', chinese: '交貨日期' },
    { english: 'delivery order', chinese: '到港通知；出貨單' },
    { english: 'demand', chinese: '需求' },
    { english: 'dependency', chinese: '依賴' },
    { english: 'dependent', chinese: '被撫養人；依賴的' },
    { english: 'deposit', chinese: '存款；押金；頭期款' },
    { english: 'deposit receipt', chinese: '存單；存款收據' },
    { english: 'deposit slip', chinese: '存款單' },
    { english: 'depositor', chinese: '存款人（戶）' },
    { english: 'depreciate', chinese: '貶值' },
    { english: 'DES', chinese: '目的港船上交貨' },
    { english: 'descending', chinese: '下降的' },
    { english: 'design', chinese: '設計' },
    { english: 'desire', chinese: '慾望；渴望' },
    { english: 'dessert', chinese: '甜點' },
    { english: 'destination', chinese: '目的地' },
    { english: 'detail', chinese: '細節' },
    { english: 'devalue', chinese: '貶值' },
    { english: 'develop', chinese: '開發' },
    { english: 'different duty', chinese: '差別關稅' },
    { english: 'digital media', chinese: '數位媒體' },
    { english: 'dimension', chinese: '尺寸' },
    { english: 'diplomatic', chinese: '外交的；圓滑老練的' },
    { english: 'direct', chinese: '直接的' },
    { english: 'direct deposit', chinese: '直接匯款' },
    { english: 'direct flight', chinese: '直飛航班' },
    { english: 'direct mail', chinese: '直接函件' },
    { english: 'direct marketing', chinese: '直效行銷' },
    { english: 'direct tax', chinese: '直接稅' },
    { english: 'discord', chinese: '不（和）睦' },
    { english: 'discount bond', chinese: '貼現債券' },
    { english: 'discount coupon', chinese: '折價券' },
    { english: 'discount rate', chinese: '貼現率' },
    { english: 'discuss', chinese: '討論' },
    { english: 'discussion', chinese: '討論' },
    { english: 'display', chinese: '展示；陳列' },
    { english: 'disposable', chinese: '可支配的' },
    { english: 'distribute', chinese: '經銷；配銷' },
    { english: 'distribution', chinese: '經銷；配銷；分配' },
    { english: 'distributor', chinese: '經銷商' },
    { english: 'distributor brand', chinese: '經銷商品牌' },
    { english: 'dive', chinese: '急遽下跌' },
    { english: 'diversify', chinese: '多樣化' },
    { english: 'dividend', chinese: '股利；紅利' },
    { english: 'dividend policy', chinese: '股利政策' },
    { english: 'divorce', chinese: '離婚' },
    { english: 'DM', chinese: '直接函件' },
    { english: 'document', chinese: '文件；單據' },
    { english: 'domestic', chinese: '國內的；家庭的' },
    { english: 'donation', chinese: '捐款' },
    { english: 'downward', chinese: '下降的' },
    { english: 'draft', chinese: '匯票；草稿' },
    { english: 'drawee', chinese: '受票人' },
    { english: 'drawer', chinese: '開票人' },
    { english: 'drive', chinese: '驅動（力）' },
    { english: 'driving force', chinese: '（驅）動力' },
    { english: 'drop', chinese: '下跌' },
    { english: 'due', chinese: '到期的' },
    { english: 'due date', chinese: '到期（付款）日' },
    { english: 'durable', chinese: '耐用的' },
    { english: 'duty', chinese: '稅' },
    { english: 'duty-free', chinese: '免稅的' },
    { english: 'duty-free shop', chinese: '免稅商店' },
    { english: 'duty-free zone', chinese: '免稅販賣區' },
    { english: 'early delivery', chinese: '提前送貨' },
    { english: 'earn', chinese: '賺取' },
    { english: 'earn a profit', chinese: '獲利' },
    { english: 'earnings', chinese: '收入' },
    { english: 'ease', chinese: '解除' },
    { english: 'e-business', chinese: '電子商務' },
    { english: 'ECFA', chinese: '經濟合作架構協議' },
    { english: 'e-commerce', chinese: '電子商務' },
    { english: 'economic', chinese: '經濟' },
    { english: 'economics', chinese: '經濟學' },
    { english: 'economist', chinese: '經濟學家' },
    { english: 'economy', chinese: '經濟' },
    { english: 'EDI', chinese: '電子資料交換' },
    { english: 'EEC', chinese: '歐洲經濟共同體' },
    { english: 'effective', chinese: '有效的' },
    { english: 'efficiency', chinese: '效率；效能' },
    { english: 'e-file', chinese: '電子檔' },
    { english: 'e-filing', chinese: '網路報稅' },
    { english: 'elastic', chinese: '有彈性的' },
    { english: 'elasticity', chinese: '彈性；伸縮性' },
    { english: 'electricity', chinese: '電（力）；電流' },
    { english: 'electronic', chinese: '電子的' },
    { english: 'electronic commerce', chinese: '電子商務' },
    { english: 'eliminate', chinese: '消弭；淘汰' },
    { english: 'emerging', chinese: '新興的' },
    { english: 'emphasize', chinese: '強調' },
    { english: 'employee', chinese: '員工' },
    { english: 'employment', chinese: '就業' },
    { english: 'endorse', chinese: '背書' },
    { english: 'energy tax', chinese: '能源稅' },
    { english: 'enter', chinese: '進入' },
    { english: 'entitle', chinese: '給予權力' },
    { english: 'entrance', chinese: '入口' },
    { english: 'entrance fee', chinese: '入場費' },
    { english: 'entrepreneur', chinese: '企業家' },
    { english: 'environment', chinese: '環境' },
    { english: 'EOS', chinese: '電子訂貨系統' },
    { english: 'equation', chinese: '方程式' },
    { english: 'equipment', chinese: '設備' },
    { english: 'equitable', chinese: '公平的' },
    { english: 'equity', chinese: '股票' },
    { english: 'essence', chinese: '本質' },
    { english: 'establish', chinese: '建立' },
    { english: 'estate', chinese: '財產' },
    { english: 'ethical audit', chinese: '道德審計' },
    { english: 'etiquette', chinese: '禮儀' },
    { english: 'evaluation', chinese: '評估' },
    { english: 'even', chinese: '使平等' },
    { english: 'excess', chinese: '超額' },
    { english: 'excessive', chinese: '過度的' },
    { english: 'exchange', chinese: '交換' },
    { english: 'exchange rate', chinese: '匯率' },
    { english: 'exemption', chinese: '所得稅' },
    { english: 'exhibition', chinese: '展覽' },
    { english: 'exit', chinese: '出口' },
    { english: 'expand', chinese: '擴大' },
    { english: 'expansion', chinese: '擴張' },
    { english: 'expectation', chinese: '期望' },
    { english: 'expected product', chinese: '期望產品' },
    { english: 'expenditure', chinese: '支出' },
    { english: 'expense', chinese: '費用' },
    { english: 'expiration', chinese: '期滿' },
    { english: 'expire', chinese: '到期' },
    { english: 'export', chinese: '輸出' },
    { english: 'export economy', chinese: '出口經濟' },
    { english: 'exporter', chinese: '出口商' },
    { english: 'exposition', chinese: '展覽會' },
    { english: 'exposure', chinese: '曝光' },
    { english: 'extend', chinese: '展延' },
    { english: 'externality', chinese: '外型' },
    { english: 'extra charge', chinese: '額外費用' },
    { english: 'extranet', chinese: '商際網路' },
    { english: 'face to face', chinese: '當面' },
    { english: 'face value', chinese: '面值' },
    { english: 'factor', chinese: '因素' },
    { english: 'factory', chinese: '工廠' },
    { english: 'fair trading', chinese: '公平交易' },
    { english: 'fall', chinese: '下跌' },
    { english: 'feature', chinese: '特性' },
    { english: 'feedback', chinese: '意見回饋' },
    { english: 'fiat money', chinese: '強制貨幣' },
    { english: 'figure', chinese: '數字' },
    { english: 'file', chinese: '申報；檔案' },
    { english: 'final demand', chinese: '最終需求' },
    { english: 'finalize', chinese: '敲定' },
    { english: 'finance', chinese: '融資' },
    { english: 'financial', chinese: '財政的' },
    { english: 'firm', chinese: '廠商' },
    { english: 'first of all', chinese: '首先' },
    { english: 'fiscal', chinese: '財政的' },
    { english: 'fiscal policy', chinese: '財政政策' },
    { english: 'fiscal year', chinese: '會計年度' },
    { english: 'fixed', chinese: '固定的' },
    { english: 'fixture', chinese: '固定裝置' },
    { english: 'flat', chinese: '持平的' },
    { english: 'flat tax', chinese: '單一稅(率)' },
    { english: 'flexible', chinese: '有彈性的' },
    { english: 'flexible benefits', chinese: '彈性福利' },
    { english: 'flier', chinese: '傳單' },
    { english: 'flight number', chinese: '航班號碼' },
    { english: 'float', chinese: '浮動' },
    { english: 'floating', chinese: '浮動的' },
    { english: 'fluctuate', chinese: '變動波動' },
    { english: 'FOB', chinese: '離岸價格' },
    { english: 'focus on', chinese: '集中(焦點)於' },
    { english: 'follow up', chinese: '後續跟進' },
    { english: 'food bar', chinese: '食物吧檯' },
    { english: 'foot the bill', chinese: '負擔費用' },
    { english: 'forecast', chinese: '預測' },
    { english: 'formal invitation', chinese: '正式邀請' },
    { english: 'foundation', chinese: '基礎' },
    { english: 'fragile', chinese: '易碎的' },
    { english: 'franchise', chinese: '經銷權' },
    { english: 'franchise chain', chinese: '委託加盟連鎖' },
    { english: 'fraud', chinese: '騙局' },
    { english: 'free gift', chinese: '贈品' },
    { english: 'free item', chinese: '免費商品' },
    { english: 'free sample', chinese: '免費樣品' },
    { english: 'free shipping', chinese: '免運費' },
    { english: 'free trade', chinese: '自由貿易' },
    { english: 'freeze', chinese: '凍結' },
    { english: 'freight', chinese: '運費' },
    { english: 'friction', chinese: '摩擦' },
    { english: 'form', chinese: '表格' },
    { english: 'frontier', chinese: '國境' },
    { english: 'full payment', chinese: '全額付款' },
    { english: 'function', chinese: '函數' },
    { english: 'fund', chinese: '基金' },
    { english: 'fund manager', chinese: '基金經紀人' },
    { english: 'futures', chinese: '期貨' },
    { english: 'FX', chinese: '外匯' },
    { english: 'G2B', chinese: '政府對企業' },
    { english: 'G2C', chinese: '政府對個人' },
    { english: 'gap', chinese: '差距' },
    { english: 'gas bill', chinese: '瓦斯費帳單' },
    { english: 'GDC', chinese: '一般性的物流中心' },
    { english: 'GDP', chinese: '國內生產毛額' },
    { english: 'general', chinese: '一般的' },
    { english: 'generous', chinese: '慷慨的' },
    { english: 'get off', chinese: '離開' },
    { english: 'gift bag', chinese: '贈品包' },
    { english: 'gift tax', chinese: '贈與稅' },
    { english: 'give away', chinese: '贈送' },
    { english: 'give up', chinese: '放棄' },
    { english: 'giveaway', chinese: '贈品' },
    { english: 'globalize', chinese: '全球化' },
    { english: 'go Dutch', chinese: '各自付帳' },
    { english: 'go for', chinese: '爭取' },
    { english: 'go out', chinese: '外出；出貨' },
    { english: 'go with', chinese: '同意' },
    { english: 'gold account', chinese: '黃金帳戶' },
    { english: 'goods', chinese: '財貨' },
    { english: 'goodwill', chinese: '商譽；友好' },
    { english: 'grant', chinese: '同意；授予' },
    { english: 'grantor', chinese: '委託人' },
    { english: 'green energy', chinese: '綠色能源' },
    { english: 'green marketing', chinese: '綠色行銷' },
    { english: 'gross', chinese: '總的；粗略的' },
    { english: 'gross income', chinese: '總所得' },
    { english: 'gross margin', chinese: '毛利' },
    { english: 'gross sales', chinese: '銷貨總額' },
    { english: 'group', chinese: '團體；群組' },
    { english: 'grow', chinese: '成長' },
    { english: 'growth', chinese: '生長；增長' },
    { english: 'guarantee', chinese: '保證' },
    { english: 'guardian', chinese: '監護人' },
    { english: 'hand luggage', chinese: '隨身行李' },
    { english: 'hand out', chinese: '發放' },
    { english: 'handling', chinese: '處理' },
    { english: 'heir', chinese: '繼承人' },
    { english: 'higher-up', chinese: '上級' },
    { english: 'high-risk', chinese: '高風險的' },
    { english: 'high-tech', chinese: '高科技的' },
    { english: 'hit', chinese: '打擊' },
    { english: 'home banking', chinese: '家庭銀行' },
    { english: 'hospitality', chinese: '殷勤招待' },
    { english: 'host', chinese: '主持' },
    { english: 'hostess', chinese: '女主人；女接待員' },
    { english: 'hot seller', chinese: '暢銷品' },
    { english: 'housing loan', chinese: '房屋貸款' },
    { english: 'how many', chinese: '多少' },
    { english: 'IaaS', chinese: '基礎建設即服務' },
    { english: 'identification', chinese: '身分證名' },
    { english: 'idle', chinese: '空轉的' },
    { english: 'illegal', chinese: '違法的' },
    { english: 'IMF', chinese: '國際貨幣基金會' },
    { english: 'imitation', chinese: '仿效' },
    { english: 'immigration', chinese: '入境管理處' },
    { english: 'impact', chinese: '衝擊' },
    { english: 'impoliteness', chinese: '無理' },
    { english: 'import', chinese: '進口' },
    { english: 'importer', chinese: '進口商' },
    { english: 'impose', chinese: '課徵' },
    { english: 'improve', chinese: '改善' },
    { english: 'in a rush', chinese: '急忙地' },
    { english: 'include', chinese: '包括' },
    { english: 'income', chinese: '收入' },
    { english: 'increase', chinese: '增加' },
    { english: 'indemnify', chinese: '保障' },
    { english: 'indemnity', chinese: '保障；賠償金' },
    { english: 'independent', chinese: '獨立的' },
    { english: 'index', chinese: '指數；索引' },
    { english: 'indicate', chinese: '指出；表明' },
    { english: 'indicator', chinese: '指標' },
    { english: 'indirect production', chinese: '間接生產' },
    { english: 'individual', chinese: '個人的' },
    { english: 'induction', chinese: '歸納法' },
    { english: 'industry', chinese: '產業' },
    { english: 'inelastic', chinese: '缺乏彈性' },
    { english: 'informal', chinese: '非正式的' },
    { english: 'informal luncheon', chinese: '非正式餐會' },
    { english: 'information', chinese: '資料；消息' },
    { english: 'innovation', chinese: '創新' },
    { english: 'innovative', chinese: '創新的' },
    { english: 'inspection', chinese: '檢查' },
    { english: 'install', chinese: '安裝' },
    { english: 'installation', chinese: '安裝' },
    { english: 'installment', chinese: '分期付款' },
    { english: 'insurance', chinese: '保險(費)' },
    { english: 'intangibility', chinese: '無形性' },
    { english: 'integrated', chinese: '整合的' },
    { english: 'integration', chinese: '整合' },
    { english: 'interest', chinese: '利息' },
    { english: 'interest rate', chinese: '利率' },
    { english: 'interference', chinese: '干預' },
    { english: 'internal', chinese: '內部的' },
    { english: 'international', chinese: '國際(性)的' },
    { english: 'international trade', chinese: '國際貿易' },
    { english: 'intervene', chinese: '干預' },
    { english: 'intervention', chinese: '干預' },
    { english: 'intranet', chinese: '(企業)內網路' },
    { english: 'introduce', chinese: '引進；介紹' },
    { english: 'invalidity', chinese: '無效' },
    { english: 'invention', chinese: '發明' },
    { english: 'inventory', chinese: '存貨' },
    { english: 'investment', chinese: '投資' },
    { english: 'investment manager', chinese: '投資經紀人' },
    { english: 'invisible', chinese: '看不見的' },
    { english: 'invitation', chinese: '邀請' },
    { english: 'invitation card', chinese: '邀請卡' },
    { english: 'invoice', chinese: '(商品的)發票' },
    { english: 'invoice amount', chinese: '發票金額' },
    { english: 'invoice number', chinese: '發票號碼' },
    { english: 'IP', chinese: '保單(英文簡稱)' },
    { english: 'IPO', chinese: '首次公開發行' },
    { english: 'IPR', chinese: '智慧財產權(英文簡稱)' },
    { english: 'IRS', chinese: '(美國)國稅局' },
    { english: 'isolation', chinese: '隔離' },
    { english: 'issue', chinese: '問題；議論；發行' },
    { english: 'issuer', chinese: '發卡機構；發行人' },
    { english: 'IT project', chinese: '資訊(科技)方案' },
    { english: 'item', chinese: '項目；條款' },
    { english: 'itinerary', chinese: '行程表；旅行計畫' },
    { english: 'jet lag', chinese: '時差' },
    { english: 'jet-lagged', chinese: '有時差現象的' },
    { english: 'jitters', chinese: '(極度)緊張不安' },
    { english: 'job', chinese: '工作；職業' },
    { english: 'job evaluation', chinese: '工作評價' },
    { english: 'job rotation', chinese: '工作輪調' },
    { english: 'judicial auction', chinese: '法拍' },
    { english: 'jump', chinese: '快速大幅上漲' },
    { english: 'junk bond', chinese: '垃圾債券' },
    { english: 'key consumer', chinese: '關鍵顧客' },
    { english: 'kick around', chinese: '非正式討論' },
    { english: 'kickback', chinese: '回扣' },
    { english: 'kind of business', chinese: '業務的種類' },
    { english: 'Korea', chinese: '韓國' },
    { english: 'label', chinese: '標籤' },
    { english: 'labeling', chinese: '貼上標籤' },
    { english: 'labor', chinese: '勞動' },
    { english: 'labor supply', chinese: '勞力供給' },
    { english: 'lading', chinese: '裝載' },
    { english: 'land', chinese: '土地' },
    { english: 'launch', chinese: '(新產品)上市' },
    { english: 'law', chinese: '法律' },
    { english: 'layoff', chinese: '裁員' },
    { english: 'LC', chinese: '信用狀(英文簡稱)' },
    { english: 'lead time', chinese: '前置作業期' },
    { english: 'leaflet', chinese: '傳單' },
    { english: 'leakage', chinese: '洩漏；漏損量' },
    { english: 'ledger', chinese: '分類帳；總帳' },
    { english: 'legal trading', chinese: '合法交易' },
    { english: 'lessen', chinese: '減輕' },
    { english: 'letter of credit', chinese: '信用狀' },
    { english: 'leverage', chinese: '槓桿' },
    { english: 'levy', chinese: '課(稅)' },
    { english: 'liability', chinese: '負債；責任' },
    { english: 'liberalize', chinese: '(使)自由化' },
    { english: 'license', chinese: '許可' },
    { english: 'licensor', chinese: '授權人' },
    { english: 'lift', chinese: '解除(封鎖、禁令等)' },
    { english: 'limit down', chinese: '跌停板' },
    { english: 'limit up', chinese: '漲停板' },
    { english: 'limited', chinese: '有限的' },
    { english: 'liquidity', chinese: '流動性' },
    { english: 'listed company', chinese: '上市公司' },
    { english: 'load', chinese: '裝載' },
    { english: 'loan', chinese: '貸款' },
    { english: 'loan agreement', chinese: '貸款協議' },
    { english: 'loaner nation', chinese: '債權國' },
    { english: 'lobbying', chinese: '遊說' },
    { english: 'local fund', chinese: '國內基金' },
    { english: 'logo', chinese: '(公司或產品的)標誌' },
    { english: 'long', chinese: '長久的；遠的' },
    { english: 'long-lasting', chinese: '長期性的' },
    { english: 'long-run', chinese: '長期的' },
    { english: 'look at', chinese: '看；考慮' },
    { english: 'look into', chinese: '調查' },
    { english: 'loophole', chinese: '(法律等的)漏洞' },
    { english: 'lose', chinese: '失去' },
    { english: 'loss', chinese: '喪失' },
    { english: 'loss rate', chinese: '損失率' },
    { english: 'lower', chinese: '降低' },
    { english: 'low-interest', chinese: '低利率的' },
    { english: 'low-traffic', chinese: '低流量的' },
    { english: 'loyal', chinese: '忠實的' },
    { english: 'loyal customer', chinese: '忠實顧客' },
    { english: 'luggage', chinese: '行李' },
    { english: 'luggage cart', chinese: '行李推車' },
    { english: 'lump sum', chinese: '一次付清的款項' },
    { english: 'lunch meeting', chinese: '午餐會議' },
    { english: 'luncheon', chinese: '午（餐）宴' },
    { english: 'luxury', chinese: '豪華；奢侈' },
    { english: 'machinery', chinese: '機械' },
    { english: 'macroeconomic', chinese: '總體經濟的' },
    { english: 'macroeconomics', chinese: '總體經濟學' },
    { english: 'macroeconomy', chinese: '總體經濟' },
    { english: 'maintain', chinese: '維修' },
    { english: 'major', chinese: '主要的' },
    { english: 'major competitor', chinese: '主要競爭對手' },
    { english: 'major cycle', chinese: '大循環' },
    { english: 'make a deal', chinese: '成交' },
    { english: 'make a loss', chinese: '虧錢' },
    { english: 'make a profit', chinese: '獲利' },
    { english: 'management fee', chinese: '管理費' },
    { english: 'manifest', chinese: '船貨(報關)清單' },
    { english: 'manipulation', chinese: '操縱' },
    { english: 'manufacture', chinese: '製造' },
    { english: 'manufacturer', chinese: '製造商' },
    { english: 'manufacturer brand', chinese: '製造商品牌' },
    { english: 'manufacturing', chinese: '製造業' },
    { english: 'margin', chinese: '保證金' },
    { english: 'margin account', chinese: '保證金帳戶' },
    { english: 'margin trading', chinese: '保證金交易' },
    { english: 'marginal', chinese: '邊緣的；微小的' },
    { english: 'marginal utility', chinese: '邊際效用 (MU)' },
    { english: 'market', chinese: '市場；銷路' },
    { english: 'market analysis', chinese: '市場分析' },
    { english: 'market anticipation', chinese: '市場預期' },
    { english: 'market demand', chinese: '市場需求' },
    { english: 'market economy', chinese: '市場經濟' },
    { english: 'market information', chinese: '市場資訊' },
    { english: 'market maker', chinese: '造市者' },
    { english: 'market positioning', chinese: '市場定位' },
    { english: 'market research', chinese: '市場研究' },
    { english: 'market segmentation', chinese: '市場區隔' },
    { english: 'market share', chinese: '市場占有率' },
    { english: 'market supply', chinese: '市場供給' },
    { english: 'market survey', chinese: '市場調查' },
    { english: 'market trend', chinese: '市場趨勢' },
    { english: 'marketability', chinese: '市場性' },
    { english: 'marketing', chinese: '行銷' },
    { english: 'marketing budget', chinese: '行銷預算' },
    { english: 'marketing channel', chinese: '行銷通路' },
    { english: 'marketing cost', chinese: '行銷費用' },
    { english: 'marketing event', chinese: '行銷活動' },
    { english: 'marketing goal', chinese: '行銷目標' },
    { english: 'marketing material', chinese: '行銷材料' },
    { english: 'marketing plan', chinese: '行銷計畫' },
    { english: 'marketing strategy', chinese: '行銷策略' },
    { english: 'marketing theme', chinese: '行銷主題' },
    { english: 'marketing-wide', chinese: '整體市場的' },
    { english: 'markup pricing', chinese: '加成訂價法' },
    { english: 'mass media', chinese: '大眾媒體' },
    { english: 'MasterCard', chinese: '萬事達卡' },
    { english: 'match', chinese: '符合' },
    { english: 'material', chinese: '材料' },
    { english: 'mature', chinese: '到期' },
    { english: 'maturity', chinese: '到期' },
    { english: 'max out', chinese: '刷爆' },
    { english: 'MDC', chinese: '製造商型物流中心' },
    { english: 'measure', chinese: '衡量' },
    { english: 'media', chinese: '媒體' },
    { english: 'meeting itinerary', chinese: '會議行程表' },
    { english: 'merger', chinese: '合併' },
    { english: 'message', chinese: '訊息' },
    { english: 'metal detector', chinese: '金屬探測器' },
    { english: 'method of payment', chinese: '付款方式' },
    { english: 'microeconomics', chinese: '個體經濟學' },
    { english: 'minimum', chinese: '最低限度' },
    { english: 'minor cycle', chinese: '小循環' },
    { english: 'mission', chinese: '使命' },
    { english: 'mixed', chinese: '混和的' },
    { english: 'modification', chinese: '修飾' },
    { english: 'monetary', chinese: '金融的' },
    { english: 'monetary policy', chinese: '貨幣政策' },
    { english: 'monetary theory', chinese: '貨幣理論' },
    { english: 'money', chinese: '貨幣' },
    { english: 'money market', chinese: '貨幣市場' },
    { english: 'money supply', chinese: '貨幣供給' },
    { english: 'monopoly', chinese: '獨占(權)' },
    { english: 'mortgage', chinese: '房貸' },
    { english: 'motivation', chinese: '刺激' },
    { english: 'motive', chinese: '動機' },
    { english: 'motto', chinese: '理念' },
    { english: 'movement', chinese: '運動' },
    { english: 'multimedia', chinese: '多媒體的' },
    { english: 'multiple', chinese: '倍數' },
    { english: 'multiplier', chinese: '乘數' },
    { english: 'mutual fund', chinese: '共同基金' },
    { english: 'mystery shopper', chinese: '神秘訪客' },
    { english: 'NASD', chinese: '那斯達克' },
    { english: 'national', chinese: '國民的；全國性的' },
    { english: 'national brand', chinese: '全國性品牌' },
    { english: 'national income', chinese: '國民所得' },
    { english: 'negative', chinese: '負面的' },
    { english: 'negative sign', chinese: '負面的跡象' },
    { english: 'negotiable', chinese: '可協商的' },
    { english: 'negotiate', chinese: '協商；談判' },
    { english: 'net', chinese: '純的' },
    { english: 'net asset', chinese: '淨資產' },
    { english: 'net income', chinese: '淨損益' },
    { english: 'net proceeds', chinese: '淨收入' },
    { english: 'net profit', chinese: '淨利' },
    { english: 'net sales', chinese: '銷貨淨額' },
    { english: 'net weight', chinese: '淨重' },
    { english: 'net worth', chinese: '淨值' },
    { english: 'NI', chinese: '國民所得(英文簡稱)' },
    { english: 'niche', chinese: '利基' },
    { english: 'niche market', chinese: '利基市場' },
    { english: 'NII', chinese: '國家資訊基礎建設' },
    { english: 'NNP', chinese: '國民生產淨額' },
    { english: 'no reserve', chinese: '無底價' },
    { english: 'Nobel prize', chinese: '諾貝爾獎' },
    { english: 'no-frills', chinese: '簡單樸實的' },
    { english: 'nominal rate', chinese: '名目利率' },
    { english: 'nonpayment', chinese: '未付' },
    { english: 'notice', chinese: '通知' },
    { english: 'NTR', chinese: '正常貿易關係' },
    { english: 'NW', chinese: '淨重(英文簡稱)' },
    { english: 'objective', chinese: '目標' },
    { english: 'OBU', chinese: '境外金融中心' },
    { english: 'obstacle', chinese: '障礙(物)' },
    { english: 'occasion', chinese: '場合' },
    { english: 'OECD', chinese: '經濟合作暨發展組織' },
    { english: 'OEEC', chinese: '歐洲經濟合作組織' },
    { english: 'OEM', chinese: '原廠委託製造' },
    { english: 'offering price', chinese: '發行價格' },
    { english: 'office equipment', chinese: '辦公室設備' },
    { english: 'official', chinese: '正式的' },
    { english: 'on business', chinese: '出差' },
    { english: 'on strike', chinese: '罷工' },
    { english: 'on the road', chinese: '在旅途中' },
    { english: 'on-demand CRM', chinese: '顧客需求關係管理' },
    { english: 'online', chinese: '連線作業的' },
    { english: 'online auction', chinese: '線上競價' },
    { english: 'online broker', chinese: '線上證券商' },
    { english: 'online order', chinese: '線上下單' },
    { english: 'online shopping', chinese: '線上購物' },
    { english: 'online transaction', chinese: '線上交易' },
    { english: 'OPEC', chinese: '石油輸出國組織' },
    { english: 'open house', chinese: '開放參觀日' },
    { english: 'operational plan', chinese: '作業計畫' },
    { english: 'opportunity', chinese: '機會' },
    { english: 'optimistic', chinese: '樂觀的' },
    { english: 'optimistically', chinese: '樂觀地' },
    { english: 'option', chinese: '選擇(權)' },
    { english: 'optional', chinese: '選擇性的' },
    { english: 'order', chinese: '訂貨' },
    { english: 'order form', chinese: '訂購單' },
    { english: 'orientation', chinese: '定位' },
    { english: 'oriented', chinese: '以…為方向的' },
    { english: 'original production', chinese: '原始生產' },
    { english: 'original utility', chinese: '原始效用' },
    { english: 'OTC index', chinese: '店頭市場指數' },
    { english: 'OTC market', chinese: '店頭市場' },
    { english: 'out of stock', chinese: '無庫存' },
    { english: 'outlook', chinese: '展望' },
    { english: 'outstanding debt', chinese: '未清償債務' },
    { english: 'outstanding loan', chinese: '未清償貸款' },
    { english: 'outstanding shares', chinese: '流通在外的股份' },
    { english: 'overcharge', chinese: '索價過高' },
    { english: 'overdraft', chinese: '透支' },
    { english: 'overdue', chinese: '逾期的' },
    { english: 'overspend', chinese: '超支' },
    { english: 'oversupply', chinese: '供應過度' },
    { english: 'overtime', chinese: '加班時間' },
    { english: 'overvalue', chinese: '高估' },
    { english: 'PaaS', chinese: '平台即服務' },
    { english: 'package', chinese: '包裝' },
    { english: 'paid-in capital', chinese: '投入資本' },
    { english: 'pallet', chinese: '(裝卸)貨板' },
    { english: 'pamphlet', chinese: '小冊子' },
    { english: 'par value', chinese: '(股票)面值' },
    { english: 'parallel import', chinese: '平行輸入' },
    { english: 'parcel', chinese: '包裹' },
    { english: 'partial', chinese: '部分的' },
    { english: 'participant', chinese: '參加者' },
    { english: 'participation', chinese: '參加' },
    { english: 'pass', chinese: '通過' },
    { english: 'passport', chinese: '護照' },
    { english: 'pastry', chinese: '酥皮點心' },
    { english: 'patent', chinese: '專利權' },
    { english: 'pay', chinese: '支付' },
    { english: 'pay by money order', chinese: '匯票付款' },
    { english: 'payable', chinese: '應付的' },
    { english: 'paycheck', chinese: '薪資支票' },
    { english: 'payday', chinese: '發薪日' },
    { english: 'payee', chinese: '受款人' },
    { english: 'payment', chinese: '付款' },
    { english: 'payment instrument', chinese: '付款票據' },
    { english: 'payout', chinese: '支出；花費' },
    { english: 'payroll', chinese: '發薪名單' },
    { english: 'payroll transfer', chinese: '薪資轉帳' },
    { english: 'PDC', chinese: '(生鮮)處理型物流中心' },
    { english: 'peak', chinese: '頂點' },
    { english: 'peg', chinese: '釘；限定(物價)' },
    { english: 'penalty', chinese: '罰款' },
    { english: 'percentage', chinese: '比例' },
    { english: 'perfection', chinese: '完美' },
    { english: 'performance', chinese: '履行；成果' },
    { english: 'period', chinese: '期間' },
    { english: 'perishability', chinese: '易逝性' },
    { english: 'person', chinese: '人' },
    { english: 'personal loan', chinese: '個人貸款' },
    { english: 'persuasion', chinese: '說服' },
    { english: 'persuasive', chinese: '有說服力的' },
    { english: 'pick up', chinese: '接；舉起' },
    { english: 'place an order', chinese: '下訂單' },
    { english: 'place of business', chinese: '商業場所' },
    { english: 'platform', chinese: '平台' },
    { english: 'point of view', chinese: '觀點' },
    { english: 'policy', chinese: '政策' },
    { english: 'politician', chinese: '政治人物' },
    { english: 'poll', chinese: '民意調查' },
    { english: 'polling', chinese: '投票' },
    { english: 'portfolio', chinese: '投資組合' },
    { english: 'postpone', chinese: '延後' },
    { english: 'potential', chinese: '潛在的' },
    { english: 'power', chinese: '權力' },
    { english: 'powerful', chinese: '強大的' },
    { english: 'practical', chinese: '實用的' },
    { english: 'practice', chinese: '練習' },
    { english: 'practitioner', chinese: '執業者' },
    { english: 'predict', chinese: '預測' },
    { english: 'predictable', chinese: '可預測的' },
    { english: 'presentation', chinese: '發表；演示' },
    { english: 'press', chinese: '新聞報導' },
    { english: 'price', chinese: '價格' },
    { english: 'price point', chinese: '價格點' },
    { english: 'price stability', chinese: '價格穩定性' },
    { english: 'price war', chinese: '價格戰' },
    { english: 'pricing', chinese: '定價' },
    { english: 'pricing model', chinese: '定價模式' },
    { english: 'pricing policy', chinese: '定價政策' },
    { english: 'primary', chinese: '主要的' },
    { english: 'principle', chinese: '原則' },
    { english: 'priority', chinese: '優先' },
    { english: 'private sector', chinese: '私營部門' },
    { english: 'probability', chinese: '概率' },
    { english: 'problem', chinese: '問題' },
    { english: 'procedure', chinese: '程序' },
    { english: 'process', chinese: '過程' },
    { english: 'product', chinese: '產品' },
    { english: 'production', chinese: '生產' },
    { english: 'productivity', chinese: '生產率' },
    { english: 'professional', chinese: '專業的' },
    { english: 'profit', chinese: '利潤' },
    { english: 'profit and loss', chinese: '損益' },
    { english: 'profit margin', chinese: '利潤率' },
    { english: 'profitability', chinese: '獲利性' },
    { english: 'promotional', chinese: '促銷的' },
    { english: 'prospective', chinese: '未來的' },
    { english: 'protect', chinese: '保護' },
    { english: 'protection', chinese: '保護' },
    { english: 'prototype', chinese: '原型' },
    { english: 'provide', chinese: '提供' },
    { english: 'publicity', chinese: '宣傳' },
    { english: 'purchasing', chinese: '採購' },
    { english: 'purchasing agent', chinese: '採購代理人' },
    { english: 'purchasing manager', chinese: '採購經理' },
    { english: 'quantity', chinese: '數量' },
    { english: 'quota', chinese: '配額' },
    { english: 'quote', chinese: '報價' },
    { english: 'race', chinese: '賽事；比賽' },
    { english: 'rate', chinese: '評價' },
    { english: 'rate of return', chinese: '報酬率' },
    { english: 'rating', chinese: '評價' },
    { english: 'real estate', chinese: '不動產' },
    { english: 'realistic', chinese: '實際的' },
    { english: 'reap', chinese: '獲得' },
    { english: 'recharge', chinese: '充電' },
    { english: 'receive', chinese: '接收' },
    { english: 'receipt', chinese: '收據' },
    { english: 'reception', chinese: '接待' },
    { english: 'reception area', chinese: '接待區' },
    { english: 'recruit', chinese: '招募' },
    { english: 'recruiter', chinese: '招募者' },
    { english: 'refine', chinese: '精練' },
    { english: 'regulation', chinese: '規定' },
    { english: 'regulatory', chinese: '監管的' },
    { english: 'reimbursement', chinese: '報銷' },
    { english: 'relationship', chinese: '關係' },
    { english: 'relative', chinese: '親屬' },
    { english: 'rely on', chinese: '依賴' },
    { english: 'remaining', chinese: '剩下的' },
    { english: 'remit', chinese: '匯款' },
    { english: 'remittance', chinese: '匯款' },
    { english: 'remuneration', chinese: '報酬' },
    { english: 'render', chinese: '提供' },
    { english: 'repair', chinese: '修理' },
    { english: 'reputation', chinese: '名聲；聲望' },
    { english: 'request', chinese: '要求' },
    { english: 'request for quotation', chinese: '報價要求' },
    { english: 'require', chinese: '要求' },
    { english: 'requirement', chinese: '要求' },
    { english: 'reserve', chinese: '保留' },
    { english: 'resource', chinese: '資源' },
    { english: 'retailer', chinese: '零售商' },
    { english: 'return', chinese: '返回' },
    { english: 'returnable', chinese: '可退的' },
    { english: 'revenue', chinese: '收入' },
    { english: 'revenue-sharing', chinese: '收益分配' },
    { english: 'reverse', chinese: '反向的' },
    { english: 'review', chinese: '檢討' },
    { english: 'reward', chinese: '報酬' },
    { english: 'risk', chinese: '風險' },
    { english: 'risk factor', chinese: '風險因子' },
    { english: 'robust', chinese: '堅固的' },
    { english: 'rollover', chinese: '展期' },
    { english: 'route', chinese: '路線' },
    { english: 'rule', chinese: '規則' },
    { english: 'run', chinese: '經營' },
    { english: 'sack', chinese: '解僱' },
    { english: 'salary', chinese: '薪資' },
    { english: 'sale', chinese: '銷售' },
    { english: 'sale campaign', chinese: '促銷活動' },
    { english: 'sale representative', chinese: '業務員' },
    { english: 'sale tax', chinese: '銷售稅' },
    { english: 'sales', chinese: '銷售' },
    { english: 'sales area', chinese: '銷售區域' },
    { english: 'sales clerk', chinese: '業務員' },
    { english: 'sales floor', chinese: '銷售樓層' },
    { english: 'sales forecast', chinese: '銷售預測' },
    { english: 'sales goal', chinese: '銷售目標' },
    { english: 'sales manager', chinese: '業務經理' },
    { english: 'sales order', chinese: '銷售訂單' },
    { english: 'sales representative', chinese: '銷售代表' },
    { english: 'sales strategy', chinese: '銷售策略' },
    { english: 'sales target', chinese: '銷售目標' },
    { english: 'sample', chinese: '樣品' },
    { english: 'satisfaction', chinese: '滿意' },
    { english: 'satisfaction survey', chinese: '滿意度調查' },
    { english: 'schedule', chinese: '日程表' },
    { english: 'scheme', chinese: '計畫' },
    { english: 'screen', chinese: '篩選' },
    { english: 'second hand', chinese: '二手的' },
    { english: 'sector', chinese: '區域' },
    { english: 'self-service', chinese: '自助服務的' },
    { english: 'senior', chinese: '年長者；資深' },
    { english: 'service', chinese: '服務' },
    { english: 'service charge', chinese: '服務費' },
    { english: 'service tax', chinese: '服務稅' },
    { english: 'serviceability', chinese: '服務性' },
    { english: 'set', chinese: '設置' },
    { english: 'share', chinese: '股份；分享' },
    { english: 'shareholder', chinese: '股東' },
    { english: 'shortage', chinese: '短缺' },
    { english: 'short-term', chinese: '短期的' },
    { english: 'shutdown', chinese: '停業' },
    { english: 'sign', chinese: '標示' },
    { english: 'signage', chinese: '招牌' },
    { english: 'significant', chinese: '顯著的' },
    { english: 'signature', chinese: '簽名' },
    { english: 'similarity', chinese: '相似' },
    { english: 'simplify', chinese: '簡化' },
    { english: 'single', chinese: '單一的' },
    { english: 'site', chinese: '位置' },
    { english: 'site visit', chinese: '現場勘查' },
    { english: 'site survey', chinese: '現場調查' },
    { english: 'situation', chinese: '情況' },
    { english: 'skewed', chinese: '偏斜的' },
    { english: 'slip', chinese: '單據；失誤' },
    { english: 'slow down', chinese: '放慢速度' },
    { english: 'slogan', chinese: '口號' },
    { english: 'sly', chinese: '狡猾的' },
    { english: 'social media', chinese: '社群媒體' },
    { english: 'social responsibility', chinese: '社會責任' },
    { english: 'social security', chinese: '社會安全' },
    { english: 'solution', chinese: '解決方案' },
    { english: 'specialist', chinese: '專家' },
    { english: 'speculate', chinese: '投機' },
    { english: 'sponsor', chinese: '贊助' },
    { english: 'spread', chinese: '擴散' },
    { english: 'standard', chinese: '標準' },
    { english: 'standard of living', chinese: '生活水準' },
    { english: 'stake', chinese: '利害關係' },
    { english: 'stakeholder', chinese: '利害關係人' },
    { english: 'strategy', chinese: '策略' },
    { english: 'strictly', chinese: '嚴格地' },
    { english: 'subordinate', chinese: '部下' },
    { english: 'subsidy', chinese: '補助金' },
    { english: 'supply', chinese: '供給' },
    { english: 'supply chain', chinese: '供應鏈' },
    { english: 'support', chinese: '支持' },
    { english: 'survey', chinese: '調查' },
    { english: 'sustainability', chinese: '永續性' },
    { english: 'sustainable', chinese: '可持續的' },
    { english: 'swear', chinese: '發誓' },
    { english: 'symptom', chinese: '症狀' },
    { english: 'systematic', chinese: '系統化' },
    { english: 'tangible', chinese: '有形的' },
    { english: 'tax', chinese: '稅' },
    { english: 'tax incentive', chinese: '稅務優惠' },
    { english: 'tax return', chinese: '報稅表' },
    { english: 'taxable income', chinese: '應納稅所得額' },
    { english: 'taxpayer', chinese: '納稅人' },
    { english: 'team', chinese: '隊伍；團隊' },
    { english: 'teamwork', chinese: '團隊合作' },
    { english: 'terminal', chinese: '終端' },
    { english: 'terms and conditions', chinese: '條款' },
    { english: 'testimony', chinese: '證詞' },
    { english: 'theory', chinese: '理論' },
    { english: 'theory of management', chinese: '管理理論' },
    { english: 'theme', chinese: '主題' },
    { english: 'thin margin', chinese: '微薄的利潤' },
    { english: 'third party', chinese: '第三方' },
    { english: 'threat', chinese: '威脅' },
    { english: 'time lag', chinese: '時差' },
    { english: 'tire', chinese: '疲倦' },
    { english: 'title', chinese: '標題' },
    { english: 'TQM', chinese: '全面品質管理' },
    { english: 'toll-free', chinese: '免費的' },
    { english: 'top', chinese: '頂尖的' },
    { english: 'trading', chinese: '貿易；交易' },
    { english: 'trademark', chinese: '商標' },
    { english: 'transaction', chinese: '交易' },
    { english: 'transfer', chinese: '轉讓；轉移' },
    { english: 'transit', chinese: '運輸' },
    { english: 'trend', chinese: '趨勢' },
    { english: 'trial', chinese: '試驗' },
    { english: 'trick', chinese: '手段' },
    { english: 'trust', chinese: '信任' },
    { english: 'trustee', chinese: '受託人' },
    { english: 'turnover', chinese: '營業額；人事流動率' },
    { english: 'unlimited', chinese: '無限制的' },
    { english: 'up to date', chinese: '最新的' },
    { english: 'urgent', chinese: '緊急的' },
    { english: 'usage', chinese: '用法' },
    { english: 'user', chinese: '使用者' },
    { english: 'user-friendly', chinese: '使用者友善的' },
    { english: 'vacancy', chinese: '空缺；職缺' },
    { english: 'validity', chinese: '有效性' },
    { english: 'value', chinese: '價值' },
    { english: 'variable', chinese: '可變的' },
    { english: 'variance', chinese: '變異' },
    { english: 'venture', chinese: '冒險' },
    { english: 'venue', chinese: '場地' },
    { english: 'verifiable', chinese: '可檢驗的' },
    { english: 'verification', chinese: '檢查' },
    { english: 'viable', chinese: '可行的' },
    { english: 'voucher', chinese: '憑證；票據' },
    { english: 'waiting list', chinese: '等候名單' },
    { english: 'walk-in', chinese: '隨到隨見的' },
    { english: 'walkout', chinese: '離席' },
    { english: 'warranty', chinese: '保證；保固' },
    { english: 'watchdog', chinese: '監視者' },
    { english: 'weigh', chinese: '稱重' },
    { english: 'well', chinese: '好' },
    { english: 'well-being', chinese: '健康' },
    { english: 'white collar', chinese: '白領' },
    { english: 'whoever', chinese: '無論誰' },
    { english: 'winning', chinese: '贏得的' },
    { english: 'withdraw', chinese: '提取' },
    { english: 'workforce', chinese: '勞動力' },
    { english: 'worldwide', chinese: '全球的' },
    { english: 'year-end', chinese: '年終' },
];

let currentQuestions = [];

function shuffle(array) {
    for (let i = array.length - 1; i > 0; i--) {
        const j = Math.floor(Math.random() * (i + 1));
        [array[i], array[j]] = [array[j], array[i]];
    }
    return array;
}

function startQuiz() {
    currentQuestions = shuffle([...wordBank]).slice(0, questionsPerQuiz);
    currentQuestionIndex = 0;
    answeredQuestions = Array(questionsPerQuiz).fill(false); 
    showQuestion();
}

function generateOptions(correctAnswer, isEnglish) {
    const incorrectAnswers = shuffle(wordBank.filter(item => (isEnglish ? item.english : item.chinese) !== correctAnswer)).slice(0, 2);
    const options = shuffle([correctAnswer, isEnglish ? incorrectAnswers[0].english : incorrectAnswers[0].chinese, isEnglish ? incorrectAnswers[1].english : incorrectAnswers[1].chinese]);
    return options;
}

function generateAudioOptions(correctAnswer) {
    const incorrectAnswers = shuffle(wordBank.filter(item => item.english !== correctAnswer)).slice(0, 2);
    const options = shuffle([correctAnswer, incorrectAnswers[0].english, incorrectAnswers[1].english]);
    return options;
}

function showQuestion() {
    if (currentQuestionIndex < currentQuestions.length) {
        const question = currentQuestions[currentQuestionIndex];
        let options;

        switch (currentQuiz) {
            case 1: 
                options = generateOptions(question.chinese, false);
                document.getElementById('quiz-container').innerHTML = `
                    <div>
                        <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                        <p>請選擇下列英文詞彙的正確中文翻譯：</p>
                        <div class="question">
                            <p><strong>${question.english}</strong></p>
                            ${options.map(option => `<button class="btn btn-outline-primary" onclick="checkAnswer('${question.chinese}', '${option}', ${currentQuestionIndex})">${option}</button>`).join('')}
                        </div>
                    </div>
                `;
                break;

            case 2: 
                options = generateOptions(question.chinese, false);
                document.getElementById('quiz-container').innerHTML = `
                    <div>
                        <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                        <p>請聽以下英文發音，並選擇正確的中文翻譯：</p>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${question.english}')">播放發音</button>
                        <div class="question">
                            ${options.map(option => `<button class="btn btn-outline-primary" onclick="checkAnswer('${question.chinese}', '${option}', ${currentQuestionIndex})">${option}</button>`).join('')}
                        </div>
                    </div>
                `;
                break;

            case 3: 
                options = generateOptions(question.english, true);
                document.getElementById('quiz-container').innerHTML = `
                    <div>
                        <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                        <p>請聽以下英文發音，並選擇正確的英文詞彙：</p>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${question.english}')">播放發音</button>
                        <div class="question">
                            ${options.map(option => `<button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${option}', ${currentQuestionIndex})">${option}</button>`).join('')}
                        </div>
                    </div>
                `;
                break;

            case 4: 
                options = generateAudioOptions(question.english);
                document.getElementById('quiz-container').innerHTML = `
                    <div>
                        <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                        <p>請選擇正確的英文發音：</p>
                        <p><strong>${question.chinese}</strong></p>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[0]}')">發音一</button>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[1]}')">發音二</button>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[2]}')">發音三</button>
                        <div class="question mt-3">
                            <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[0]}', ${currentQuestionIndex})">1</button>
                            <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[1]}', ${currentQuestionIndex})">2</button>
                            <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[2]}', ${currentQuestionIndex})">3</button>
                        </div>
                    </div>
                `;
                break;

            case 5: 
                options = generateAudioOptions(question.english);
                document.getElementById('quiz-container').innerHTML = `
                    <div>
                        <h3>測驗 ${currentQuiz} - 題目 ${currentQuestionIndex + 1}</h3>
                        <p>請選擇正確的英文發音：</p>
                        <p><strong>${question.english}</strong></p>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[0]}')">發音一</button>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[1]}')">發音二</button>
                        <button class="btn btn-primary" onclick="playGoogleTranslateVoice('${options[2]}')">發音三</button>
                        <div class="question mt-3">
                            <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[0]}', ${currentQuestionIndex})">1</button>
                            <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[1]}', ${currentQuestionIndex})">2</button>
                            <button class="btn btn-outline-primary" onclick="checkAnswer('${question.english}', '${options[2]}', ${currentQuestionIndex})">3</button>
                        </div>
                    </div>
                `;
                break;
        }
    } else {
        nextQuiz();
    }
}

function playGoogleTranslateVoice(text) {
    if ('speechSynthesis' in window) {
        const utterance = new SpeechSynthesisUtterance(text);
        utterance.lang = 'en-US'; 
        window.speechSynthesis.speak(utterance);
    } else {
        alert("抱歉，您的瀏覽器不支持語音合成。");
    }
}

function checkAnswer(correctAnswer, selectedAnswer, questionIndex) {
    if (!answeredQuestions[questionIndex]) {
        const buttons = document.querySelectorAll('.btn-outline-primary');
        
   
        buttons.forEach(button => {
            if (button.textContent === correctAnswer) {
                button.textContent += " ✔ 正確";
            } else if (button.textContent === selectedAnswer) {
                button.textContent += " ✘ 錯誤";
            }
            button.disabled = true; 
        });


        if (correctAnswer === selectedAnswer) {
            quizScores[currentQuiz - 1] += pointsPerQuestion;
        }

        answeredQuestions[questionIndex] = true;

      
        setTimeout(() => {
            nextQuestion(); 
        }, 500);
    }
}


function nextQuestion() {
    document.getElementById('nextBtn').classList.add('hidden');
    currentQuestionIndex++;
    
    if (currentQuestionIndex < questionsPerQuiz) {
        showQuestion();
    } else {
        currentQuiz++;
        
        if (currentQuiz <= totalQuizzes) {
            startQuiz();
        } else {
 
            fetch('https://docs.google.com/forms/u/0/d/e/1FAIpQLScRDSoCSwG-kD54vKVnknKeGNtsRCaXw0ePvK7N4kmpDgZbmg/formResponse', {
                method: 'POST',
                headers: {
                    'Content-Type': 'application/x-www-form-urlencoded'
                },
                body: 'entry.XXXXXXX=' + encodeURIComponent(totalScore) 
            }).then(response => {
                if (response.ok) {
                    console.log('提交成功');
                } else {
                    console.error('提交失敗');
                }
            }).catch(error => {
                console.error('提交時出錯:', error);
            });
            
            showResults();
        }
    }
}


function showResults() {
    totalScore = quizScores.reduce((a, b) => a + b, 0); 
    document.getElementById('quiz-container').innerHTML = '';
    document.getElementById('score-details').innerHTML = `
        測驗一: ${quizScores[0]} / 20<br>
        測驗二: ${quizScores[1]} / 20<br>
        測驗三: ${quizScores[2]} / 20<br>
        測驗四: ${quizScores[3]} / 20<br>
        測驗五: ${quizScores[4]} / 20<br>
    `;
    document.getElementById('total-score').innerHTML = '總分: ' + totalScore + ' / 100';
    document.getElementById('results').classList.remove('hidden');
}

startQuiz();

// 
document.addEventListener('copy', (e) => {
    e.preventDefault();
    alert('專心考試');
});


document.addEventListener('contextmenu', (e) => {
    e.preventDefault();
    alert('想做什麼');
});


function detectDevTools() {
    const threshold = 160;
    const isMobile = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent);

    if (!isMobile) {
        const isDevToolsOpen = window.outerWidth - window.innerWidth > threshold || window.outerHeight - window.innerHeight > threshold;

        if (isDevToolsOpen) {
            window.location.href = 'about:blank';
        }
    }
}

document.addEventListener('keydown', (e) => {
    if (e.key === 'F12') {
        e.preventDefault();
        window.location.href = 'about:blank';
    }
});
document.addEventListener('keydown', (e) => {
    if ((e.ctrlKey || e.metaKey) && e.key === 's') {
        e.preventDefault();
        alert('專心考試');
    }
});

setInterval(detectDevTools, 50);
    </script>
    <script src="../../java/antiDebug.js"></script>
    <footer>
        <p>國立草屯商工 &copy; 2024-2025<a href="https://www.nasify.org" target="_blank">NasifyTech納啟科技開發</a></p>
    </footer>
</body>
</html>
