﻿@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800;900&display=swap");


/* =====================================================
   01. Base
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Noto Sans TC",
        "Microsoft JhengHei",
        Arial,
        sans-serif;

    color: #252525;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =====================================================
   02. Header
===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 80px;

  background: rgba(255,255,255,.96);

  border-bottom: 1px solid #eee;

  box-shadow:
    0 4px 20px rgba(0,0,0,.06);
}

.header-inner {
  width: min(1200px, calc(100% - 40px));
  height: 80px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

}


/* Logo */
.logo {
  flex-shrink: 0;
}

.logo img {
  display: block;

  width: auto;
  height: 55px;
}



/* =====================================================
   03. DESKTOP MENU
===================================================== */
.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}


.menu a {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 0 15px;

  border-radius: 8px;

  color: #334455;

  font-size: 15px;
  font-weight: 600;

  white-space: nowrap;

  transition:
    color .2s ease,
    background .2s ease;
}


.menu a:hover {
    color: #60488e;
    background: #f4f1f8;
}


.menu a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 0;
    height: 2px;

    background: #73579c;

    transform: translateX(-50%);

    transition: width .25s ease;
}


.menu a:hover::after {
    width: calc(100% - 30px);
}

.mobile-menu-hint {
    display: none;
}


/* =====================================================
   04. DROPDOWN
===================================================== */

.menu-dropdown {
    position: relative;
}


.menu-main {
    cursor: pointer;
}


.arrow {
    margin-left: 5px;

    font-size: 13px;
}


.submenu {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    z-index: 100;

    min-width: 150px;

    padding: 8px;

    background: #fff;

    border: 1px solid #e6e6e6;
    border-radius: 10px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .12);

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%)
        translateY(-5px);

    transition: .2s;
}


.menu-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


.submenu a {
    display: block;

    min-height: auto;

    padding: 10px 14px;

    border-radius: 6px;

    color: #455665;

    font-size: 14px;

    text-align: center;
}


.submenu a::after {
    display: none;
}


.submenu a:hover {
    color: #60488e;
    background: #f4f1f8;
}


/* =====================================================
   04. Hero 共用結構
   ※ 高度、背景、圖片大小放到活動 CSS
===================================================== */

.hero {
    position: relative;

    width: 100%;
    margin: 0 auto;

    overflow: hidden;

    text-align: center;
}

.hero-title {
		position: static;
    width: min(100%, 1200px);
    margin: 0 auto;
}

.hero_m {
    display: none;
}

/* =====================================================
   06. Section Title 共用結構
   ※ 顏色放活動 CSS
===================================================== */

.section-title {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 25px;

    font-size: 28px;
    font-weight: 900;
}

.section-title::before {
    content: "";

    width: 7px;
    height: 30px;

    border-radius: 10px;
}

/* =====================================================
   07. COURSE PAGE
===================================================== */

.course-page {
    width: 100%;

    padding: 30px 20px;

    background: #f7f9fc;
    color: #263746;

    overflow: visible;
}


/* =====================================================
   08. MAIN LAYOUT
===================================================== */

.course-container {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    align-items: start;

    gap: 28px;

    width: min(1200px, 100%);

    margin: 0 auto;

    overflow: visible;
}


.course-main {
    min-width: 0;

    overflow: visible;
}


/* =====================================================
   09. COMMON CONTENT CARD
===================================================== */

.course-hero,
.content-section,
.teacher-section,
.faq-section {
    width: 100%;

    margin-bottom: 28px;

    background: #fff;

    border: 1px solid #e5ebef;
    border-radius: 20px;

    box-shadow:
        0 8px 30px rgba(38, 61, 78, .07);

    scroll-margin-top: 100px;
}


/* =====================================================
   10. COURSE HERO
===================================================== */

.course-hero {
    padding: 18px;
}


.course-hero-img {
    width: 100%;

    margin-bottom: 18px;

    border-radius: 14px;
}


/* =====================================================
   11. VIDEO
===================================================== */

.video-box {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #000;

    border-radius: 14px;
}


.video-box iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =====================================================
   12. CONTENT SECTION
===================================================== */

.content-section {
    padding-bottom: 36px;
}


.section-banner {
    width: 100%;

    margin-bottom: 28px;

    border-radius: 20px 20px 0 0;
}


.content-image {
    width: calc(100% - 60px);
    max-width: 760px;

    margin: 0 auto 30px;

    border-radius: 14px;
}




/* =====================================================
   13. ARTICLE
===================================================== */

.article-content {
    padding: 0 44px 10px;
}


.article-content p,
.lesson-body p {
    margin: 0 0 18px;

    color: #536571;

    font-size: 16px;
    line-height: 1.9;

    text-align: justify;
}


.article-content .lead {
    color: #263d4d;

    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
}


.article-content h2 {
    margin: 0 0 18px;

    color: #263d4d;

    font-size: 25px;
    line-height: 1.4;
}


.article-content h3 {
    margin: 25px 0 12px;

    color: #b47b27;

    font-size: 18px;
    font-weight: 700;
}


.article-content h3:first-of-type {
    margin-top: 0;
}


.highlight-box {
    margin-top: 26px;

    padding: 20px 24px;

    background: #f1f6fa;

    border-left: 4px solid #547b94;
    border-radius: 0 12px 12px 0;

    color: #405866;

    font-size: 15px;
    line-height: 1.9;
}


/* =====================================================
   14. LESSON CARDS
===================================================== */

.course-list-section {
    padding-bottom: 8px;
}


.lesson-card {
    margin: 0 30px 30px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #e1e8ed;
    border-radius: 18px;

    scroll-margin-top: 100px;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}



/* 文章卡片 */
.lesson-article {
    background: #fffdf9;
    border: 1px solid #eadfce;
    border-radius: 16px;
}

/* 文章內距 */
.lesson-article .lesson-body {
    padding: 36px 40px 45px;
}

/* 標題區 */
.lesson-article .article-header {
    margin-bottom: 30px;
}

/* 主標題 */
.lesson-article .article-title {
    margin: 0 0 16px;
    padding-left: 16px;

    border-left: 5px solid #94692f;

    color: #80551f;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.5;
}

/* 日期與作者 */
.lesson-article .article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: #97897a;
    font-size: 12px;
}

/* 文章內文 */
.lesson-article .article-text p {
    margin: 0 0 22px;

    color: #403a33;
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
    letter-spacing: .3px;

    text-align: justify;
}

/* 六大重點 */
.lesson-article .article-keypoints {
    margin: 18px 0 28px;
    padding: 20px 24px 20px 46px;

    background: #fff8ef;
    border: 1px solid #f0e3ce;
    border-radius: 12px;
}

.lesson-article .article-keypoints li {
    margin-bottom: 11px;

    color: #51463b;
    font-size: 15px;
    line-height: 1.85;
}

.lesson-article .article-keypoints li:last-child {
    margin-bottom: 0;
}

.lesson-article .article-keypoints li::marker {
    color: #a36a36;
    font-weight: 700;
}

.lesson-article .article-keypoints strong {
    color: #915722;
}

/* ==================================
   文章目錄
================================== */

.lesson-article .article-toc {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 32px 0;
    padding: 22px 24px;

    background: #f8f0e6;
    border: 1px solid #eadbc6;
    border-radius: 12px;
}

.lesson-article .toc-title {
    margin-bottom: 5px;

    color: #82502a;
    font-size: 17px;
    font-weight: 800;
}

.lesson-article .article-toc a {
    color: #65513d;
    font-size: 14px;
    line-height: 1.7;
    text-decoration: none;

    transition: color .2s ease;
}

.lesson-article .article-toc a:hover {
    color: #c05330;
    text-decoration: underline;
}

/* ==================================
   文章小標題
================================== */

.lesson-article .article-chapter {
    margin-top: 36px;
    scroll-margin-top: 100px;
}

.lesson-article .article-chapter h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;

    border-bottom: 1px solid #eadbc6;

    color: #aa532b;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
}


/* ==================================
   劇本對照區塊
================================== */

/* 重點文字 */
.lesson-article .article-highlight {
    color: #1682b8;
    font-weight: 800;
}

/* 劇本卡片共用 */
.lesson-article .script-box {
    margin: 22px 0;
    padding: 22px 26px;

    border-radius: 12px;
    border: 1px solid #e8e2da;

    background: #fafafa;
}

/* 原始敘述版本 */
.lesson-article .script-original {
    background: #f7f7f7;
    border-left: 4px solid #a0a0a0;
}

/* 改編後版本 */
.lesson-article .script-adapted {
    background: #fff7e9;
    border-left: 4px solid #bc7135;
}

/* 版本標題 */
.lesson-article .script-label {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: #805024;
    font-size: 16px;
    font-weight: 800;
}

/* 數字標籤 */
.lesson-article .script-label span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    border-radius: 50%;

    background: #a96a35;
    color: #fff;

    font-size: 12px;
    font-weight: 700;
}

/* 原始版本數字 */
.lesson-article .script-original .script-label span {
    background: #888;
}

/* 劇本內容 */
.lesson-article .script-content {
    padding-left: 8px;
}

/* 英文對白 */
.lesson-article .script-content p {
    margin: 0 0 13px;

    color: #413b35;
    font-size: 15px;
    line-height: 1.8;

    text-align: left;
}

/* 角色名稱 */
.lesson-article .script-content strong {
    color: #a24d2c;
    font-weight: 800;
}

/* 最後一行不留空隙 */
.lesson-article .script-content p:last-child {
    margin-bottom: 0;
}



.lesson-video {
    margin-top: 26px;
}


/* =====================================================
   15. FAQ
===================================================== */

.faq-section {
    padding: 40px;
}


.section-heading {
    margin-bottom: 26px;

    text-align: center;
}


.section-heading small {
    color: #8298a7;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;
}


.section-heading h2 {
    margin: 5px 0;

    color: #294152;

    font-size: 29px;
}


.section-heading p {
    margin: 0;

    color: #88969f;

    font-size: 14px;
}


.faq-list {
    border-top: 1px solid #e4eaee;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}


.faq-item {
    border-bottom: 1px solid #e4eaee;
}


.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    padding: 21px 1px;
    border: 0;
    background: transparent;
    color: #344d5e;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}


.faq-plus {
    flex-shrink: 0;

    color: #66889d;

    font-size: 18px;

    transition: transform .2s ease;
}


.faq-answer {
    display: none;

    padding: 0 30px 22px 3px;

    color: #61727d;

    font-size: 15px;
    line-height: 1.85;
}


.faq-answer p {
    margin: 0 0 12px;
}


.faq-item.active .faq-answer {
    display: block;
}


.faq-item.active .faq-plus {
    transform: rotate(45deg);
}


/* =====================================================
   COURSE SIDEBAR
===================================================== */

.course-sidebar {
    min-width: 0;
    align-self: stretch;
    height: 100%;
    overflow: visible;
}


/* =====================================================
   SIGNUP CARD
===================================================== */

.signup-card {
    position: sticky;
    top: 100px;

    width: 100%;
    height: fit-content;

    overflow: hidden;

    background: #fff;

    border: 1px solid #d6e3eb;
    border-radius: 6px;

    box-shadow:
        0 4px 14px rgba(45, 68, 82, .06);
}


/* =====================================================
   HEADER
===================================================== */

.signup-header {
    padding: 24px 22px 20px;

    background: #f8f8f8;

    border-bottom: 1px solid #edf1f3;

    color: #4b4b4b;
}


.signup-tag {
    display: none;
}


.signup-header h2 {
    margin: 0 0 6px;

    color: #4b4b4b;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}


.signup-header p {
    margin: 0;

    color: #ff5163;

    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}


/* =====================================================
   COURSE INFO
===================================================== */

.purchase-title {
    padding: 16px 22px 3px;

    color: #71889b;

    font-size: 14px;
    font-weight: 500;
}


.purchase-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin: 0 22px;
    padding: 6px 0 11px;

    border-bottom: 1px solid #d9e3e9;
}


.purchase-info {
    flex: 1;
    min-width: 0;
}


.purchase-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
}


.purchase-name strong {
    color: #34465a;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}



/* =====================================================
   PRICE BOX
===================================================== */

.bundle-box {
    position: relative;

    margin: 16px 22px 18px;
    padding: 18px;

    background: #fff4c9;

    border: 1px solid #f2bd40;
    border-radius: 12px;
}


/* =====================================================
   PRICE BOX TITLE
===================================================== */

.bundle-top {
    margin-bottom: 12px;
}


.bundle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 12px;

    background: #df263b;

    border-radius: 20px;

    color: #fff;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   PRICE ROWS
===================================================== */

.bundle-price {
    display: block;
    margin: 0;
}


.price-row {
    display: flex;
    align-items: center;

    gap: 9px;
}


/* =====================================================
   BADGES
===================================================== */

.discount-badge {
    position: static;

    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}


/* 個人報名 */
.single-badge {
    background: #dcebf8;
    color: #4b78a3;
}


/* 2人以上 */
.group-badge {
    background: #4c82bd;
    color: #fff;
}


/* =====================================================
   PRICE CONTENT
===================================================== */

.price-content {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 4px;
}


.price-content small {
    color: #bd3a3f;

    font-size: 14px;
    font-weight: 600;
}


.price-content strong {
    color: #d21836;

    font-size: 28px;
    font-weight: 800;

    line-height: 1;
}


/* =====================================================
   NORMAL PRICE
===================================================== */

.normal-price {
    padding: 7px 0 10px;
}


.normal-price .price-content strong {
    font-size: 27px;
}


/* =====================================================
   GROUP RECOMMENDED PRICE
===================================================== */

.group-price {
    position: relative;

    display: block;

    margin-top: 10px;
    padding: 14px 12px 12px;

    background: rgba(255, 255, 255, .72);

    border-radius: 10px;

    box-shadow:
        0 2px 7px rgba(160, 118, 42, .05);
}


/* 上面那一列：2人以上 */
.group-price-head {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 10px;
}


/* 優惠價 */
.price-title {
    color: #c13b3f;

    font-size: 12px;
    font-weight: 700;
}


/* 899 主價格 */
.group-price .price-content strong {
    font-size: 31px;
}


/* 推薦標籤 */
.group-price::after {
    content: "推薦";

    position: absolute;

    top: -8px;
    right: 10px;

    padding: 2px 8px;

    background: #ff7a00;

    border-radius: 20px;

    color: #fff;

    font-size: 10px;
    font-weight: 700;

    box-shadow:
        0 2px 5px rgba(255, 122, 0, .18);
}


/* =====================================================
   OPTIONAL TEXT
===================================================== */

.bundle-name {
    margin-top: 7px;

    color: #b04a36;

    font-size: 13px;
    font-weight: 600;
}


.bundle-original {
    margin-top: 8px;

    color: #9a7541;

    font-size: 12px;

    text-decoration: none;
}


/* =====================================================
   MAIN BUY BUTTON
===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 500;
  transition: .25s;
  cursor: pointer;
}

.main-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin: 0 22px;

    background: #ff7a00;

    border-radius: 5px;

    color: #fff;

    font-size: 17px;
    font-weight: 700;

    box-shadow:
        0 3px 7px rgba(255, 122, 0, .18);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.main-buy-btn:hover {
    background: #ed7000;

    transform: translateY(-1px);

    box-shadow:
        0 6px 13px rgba(237, 112, 0, .22);
}


/* =====================================================
   NOTE
===================================================== */

.signup-note {
    padding: 17px 22px 20px;

    color: #956c3f;

    font-size: 13px;
    line-height: 1.9;

    text-align: center;
}


.signup-note span {
    margin-right: 4px;

    color: #3f73b4;

    font-weight: 500;
}


main-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin: 0 22px;

    background: #ff7a00;

    border-radius: 5px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 700;

    box-shadow:
        0 3px 7px rgba(255, 122, 0, .18);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;

}


.main-buy-btn:hover {
    background: #ed7000;

    transform: translateY(-1px);

    box-shadow:
        0 6px 13px rgba(237, 112, 0, .22);

}


/* =====================================================
   25. NOTE
===================================================== */

.signup-note {
    padding: 17px 22px 20px;

    color: #956c3f;

    font-size: 13px;
    line-height: 1.9;

    text-align: center;

}


.signup-note span {
    margin-right: 4px;

    color: #3f73b4;

    font-weight: 500;

}


/* =====================================================
   21. MOBILE COURSE BUY
   目前不使用
===================================================== */

.mobile-course-buy {
    display: none;
}



/* =====================================================
   16. 回頂端
===================================================== */

#TOP {
    position: fixed;

    right: 10px;
    bottom: 50px;

    z-index: 99;

    display: none;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    opacity: .65;

    text-align: center;

    box-shadow:
        rgba(60, 64, 67, .3) 0 1px 2px 0,
        rgba(60, 64, 67, .15) 0 2px 6px 2px;

    transition: opacity .5s ease;
}

.material-symbols-outlined {
    padding-top: 3px;

    font-size: 2.5rem;
}

/* =====================================================
   18. Footer
===================================================== */

.site-footer {
    padding: 12px 20px;

    background: #37424b;
    color: #fff;

    text-align: center;
}

.site-footer p {
    margin: 0;

    font-size: 13px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  width: min(650px, 92%);
  margin: 3% auto 5%;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
  max-height: 85vh;
  overflow-y: auto;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}


/* =========================
   Modal 共用背景
========================= */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 40px 16px;
  overflow-y: auto;
  background: rgba(25, 8, 45, .62);
  backdrop-filter: blur(6px);
}

/* Modal 白色內容框 */
.modal .modal-content {
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;
  padding: 42px 40px 34px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20, 0, 40, .35);
  animation: modalPop .28s ease-out;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 關閉按鈕 */
.modal .close {
  position: absolute;
  top: 13px;
  right: 17px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b5b76;
  background: #f5effa;
  font-size: 28px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  transition: .2s;
}

.modal .close:hover {
  color: #fff;
  background: #7b2cbf;
  transform: rotate(90deg);
}

/* =========================
   登入 Modal
========================= */
#loginModal form {
  margin: 0;
}

#loginModal table {
  width: 100%;
  border-collapse: collapse;
}

#loginModal thead td {
  padding: 0 0 24px;
  color: #24103f;
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}

#loginModal tbody th,
#loginModal tbody td {
  padding: 8px 0;
  text-align: left;
}

#loginModal tbody th {
  width: 78px;
  color: #4c3b59;
  font-size: 16px;
  font-weight: 800;
}

#loginModal .input-field {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #ded3e8;
  border-radius: 10px;
  outline: none;
  color: #24103f;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  transition: .2s;
}

#loginModal .input-field:focus {
  border-color: #7b2cbf;
  box-shadow: 0 0 0 4px rgba(123, 44, 191, .13);
}

#loginModal tfoot td {
  text-align: center;
}

#loginModal input[type="submit"] {
  width: 100%;
  margin: 20px 0 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a00, #ff4d00);
  box-shadow: 0 8px 18px rgba(255, 94, 0, .3);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
}

#loginModal input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 22px rgba(255, 94, 0, .4);
}


#loginModal tfoot tr:last-child a:hover {
  color: #ff6a00;
  text-decoration: underline;
}

/* =========================
   忘記密碼 Modal
========================= */
#forgetModal .login-container {
  width: 100%;
  margin: 0;
}

#forgetModal .account-header {
  margin-bottom: 28px;
  text-align: center;
}

#forgetModal .account-title {
  margin: 0 0 10px;
  color: #24103f;
  font-size: 26px;
  font-weight: 900;
}

#forgetModal .account-subtitle {
  margin: 0;
  color: #756781;
  font-size: 15px;
  line-height: 1.8;
}

#forgetModal .form-group {
  margin-bottom: 20px;
}

#forgetModal .form-label {
  display: block;
  margin-bottom: 8px;
  color: #4c3b59;
  font-size: 15px;
  font-weight: 800;
}

#forgetModal .form-input {
  width: 100%;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #ded3e8;
  border-radius: 10px;
  outline: none;
  color: #24103f;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: .2s;
}

#forgetModal .form-input:focus {
  border-color: #7b2cbf;
  box-shadow: 0 0 0 4px rgba(123, 44, 191, .13);
}

#forgetModal .captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

#forgetModal .col-code {
  flex: 1;
  min-width: 0;
}

#forgetModal .captcha-img-wrapper {
  flex: 0 0 120px;
  height: 48px;
  overflow: hidden;
  border: 1px solid #ded3e8;
  border-radius: 10px;
  background: #f8f6fb;
}

#forgetModal #captchaImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

#forgetModal .btn-submit {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #7b2cbf, #4b137a);
  box-shadow: 0 8px 18px rgba(123, 44, 191, .28);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: .2s;
}

#forgetModal .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 22px rgba(123, 44, 191, .4);
}

/* 忘記密碼、加入會員：並排 */
#loginModal .login-links {
  padding-top: 2px;
  justify-content: center;
  align-items: center;
  gap: 0;
}

#loginModal .login-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #7b2cbf;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: .2s;
}
#loginModal .login-links a:hover {
  color: #ff6a00;
  text-decoration: none;
}



/* =====================================================
   19. Tablet
   769px ～ 1024px
===================================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .header {
        width: 100%;
 			 height: 65px;
    }


		.logo img {
		  height: 45px;
		}

		.header-inner {
		  height: 65px;
		}

    .menu {
        gap: 3px;
        margin-right: 0;
    }

    .menu a {
        padding: 0 9px;

        font-size: 13px;
    }


    .hero-title {
        width: 100%;
    }

    .course-container {
        grid-template-columns:
            minmax(0, 1fr)
            300px;
        gap: 20px;
    }

.signup-card {
    top: 80px;
}

    .article-content {
        padding:
            0 28px
            10px;
    }


    .lesson-card {
        margin-left: 20px;
        margin-right: 20px;
    }

.course-page {
    width: 100%;

    padding: 20px 20px;

    background: #f7f9fc;
    color: #263746;

    overflow: visible;
}

}


/* =====================================================
   20. Mobile
   768px 以下
===================================================== */

@media screen and (max-width: 768px) {

    body {
        padding-bottom: 120px;
        /*
        如果手機 fixed 有問題，
        可以改為：
        background-attachment: scroll;
        */
    }


   
    /* ---------------------------------
       Header
    --------------------------------- */

    .header {
        position: relative;
        top: auto;
        height: 54px;
        z-index: 100;
    }

    .header-inner {
        width: calc(100% - 20px);
        height: 54px;

        margin: 0 auto;

        justify-content: flex-start;
    }

    .logo img {
        height: 40px;
    }


    /* -----------------------------------------
       手機下方選單
    ----------------------------------------- */

    .menu {
        position: fixed;
        right: 0;
        bottom: 64px;
        left: 0;
        z-index: 2200;

        display: flex;
        align-items: center;

        width: 100%;
        height: 55px;

        margin: 0;
        padding: 7px 10px;

        gap: 6px;

        overflow-x: auto;
        overflow-y: hidden;

        background: rgba(255,255,255,.98);

        border-top: 1px solid #ddd;
        border-bottom: 1px solid #eee;

        box-shadow:
            0 -2px 8px rgba(0,0,0,.06);

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .menu::-webkit-scrollbar {
        display: none;
    }

    .menu a {
        flex: 0 0 auto;

        display: flex;
        align-items: center;
        justify-content: center;

        min-height: 36px;

        padding: 7px 13px;

        background: #fff;

        border: 1px solid #ddd;
        border-radius: 18px;

        color: #173d72;

        font-size: 12px;
        font-weight: 700;

        white-space: nowrap;
    }

    .menu a::after {
        display: none;
    }



    .menu a:hover {
        color: #173d72;

        background: #f4f6f8;
    }


    /* 手機不開 dropdown */

    .menu-dropdown {
        position: static;

        flex: 0 0 auto;
    }


    .submenu {
        display: none;
    }


    .arrow {
        display: none;
    }


    .mobile-menu-hint {
        position: fixed;

        right: 5px;
        bottom: 110px;

        z-index: 2250;

        display: block;

        padding: 4px 8px;

        background: rgba(41, 75, 97, .88);

        border-radius: 12px;

        color: #fff;

        font-size: 10px;
        font-weight: 600;

        pointer-events: none;

        opacity: .9;
    }
    

 /* =====================================================
   手機固定購買方案
===================================================== */

.mobile-course-buy {
    position: fixed;

    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2150;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;
    min-height: 70px;

    padding: 8px 14px 8px 16px;

    background: #fff;

    border-top: 1px solid #dce5eb;

    box-shadow:
        0 -4px 14px rgba(45, 68, 82, .08);
}


/* ==============================
   價格區
============================== */

.mobile-course-price {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 0;
}


/* 每一列 */
.mobile-price-row {
    display: flex;
    align-items: baseline;

    gap: 6px;

    white-space: nowrap;
}


/* 方案名稱 */
.mobile-price-label {
    color: #71889b;

    font-size: 11px;
    font-weight: 600;
}


/* 一般價格 */
.mobile-price-row strong {
    color: #34465a;

    font-size: 16px;
    font-weight: 800;
}


/* 2人優惠 */
.mobile-price-sale .mobile-price-label {
    color: #c13b3f;
}


.mobile-price-sale strong {
    color: #d21836;

    font-size: 18px;
}


/* / 人 */
.mobile-price-sale strong small {
    color: #d21836;

    font-size: 11px;
    font-weight: 600;
}


/* ==============================
   按鈕
============================== */

.mobile-course-buy-btn {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 105px;
    height: 44px;

    padding: 0 16px;

    background: #ff7a00;

    border-radius: 7px;

    color: #fff;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 3px 8px rgba(255, 122, 0, .18);

    transition:
        background .2s ease,
        transform .2s ease;
}


.mobile-course-buy-btn:hover {
    background: #ed7000;

    transform: translateY(-1px);
}



    /* ---------------------------------
       Hero
    --------------------------------- */


    .hero {
        display: none;
    }

    .hero_m {
        display: block;
        width: 100%;
    }

    .hero_m img {
        width: 100%;
    }

    .hero_m .logo img {
        width: 180px;
        height: auto;

        margin: 8px 5px;
    }

    /* -----------------------------------------
       Course page
    ----------------------------------------- */

    .course-page {
        padding:
            14px
            10px
            30px;
    }


    .course-container {
        display: flex;
        flex-direction: column;

        width: 100%;

        gap: 18px;
    }


    /* 左側正常放前面 */

    .course-main {
        width: 100%;

        order: 1;
    }


    /* 右側購買資訊放最後 */

    .course-sidebar {
        width: 100%;
        height: auto;

        margin-top: 5px;

        order: 2;

        align-self: auto;
    }


    .signup-card {
        position: static;

        top: auto;

        width: 100%;

        border-radius: 15px;
        
    }




    /* -----------------------------------------
       Cards
    ----------------------------------------- */

    .course-hero,
    .content-section,
    .faq-section {
        margin-bottom: 18px;

        border-radius: 15px;

        scroll-margin-top: 15px;
    }


    .course-hero {
        padding: 10px;
    }


    .course-hero-img {
        margin-bottom: 10px;

        border-radius: 10px;
    }


    .section-banner {
        margin-bottom: 20px;

        border-radius: 15px 15px 0 0;
    }


    .content-image {
        width: calc(100% - 28px);

        margin:
            0 auto
            22px;

        border-radius: 10px;
    }


    /* -----------------------------------------
       Article
    ----------------------------------------- */

    .article-content {
        padding:
            0
            19px
            8px;
    }


    .article-content p,
    .lesson-body p {
        font-size: 15px;

        line-height: 1.8;
    }


    .article-content .lead {
        font-size: 17px;
    }


    .article-content h2 {
        font-size: 22px;
    }


    .article-content h3 {
        margin-top: 20px;

        font-size: 17px;
    }


    .highlight-box {
        padding: 17px 18px;

        font-size: 15px;
    }


    /* -----------------------------------------
       Lesson
    ----------------------------------------- */

    .lesson-card {
        margin:
            0
            13px
            22px;

        border-radius: 13px;

        scroll-margin-top: 15px;
    }


    .lesson-body {
        padding:
            21px
            19px
            24px;
    }


    .lesson-body h2 {
        font-size: 21px;
    }


    .lesson-body h2 span {
        font-size: 15px;
    }


    .lesson-price strong {
        font-size: 21px;
    }


    /* -----------------------------------------
       FAQ
    ----------------------------------------- */

    .faq-section {
        padding:
            30px
            19px;
    }


    .section-heading h2 {
        font-size: 25px;
    }


    .faq-question {
        padding:
            18px
            2px;

        font-size: 15px;
    }


    .faq-answer {
        padding:
            0
            20px
            20px
            2px;
    }
    
    /* ---------------------------------
       回頂端
    --------------------------------- */


    #TOP {
        width: 40px;
        height: 40px;
        bottom: 15%;
    }

    .material-symbols-outlined {
        padding-top: 0;

        font-size:1.8rem;
    }


    /* Footer */

    .footer-contact {
        display: none;
    }

    .footer-copyright {
        margin: 0;

        font-size: 11px;
        line-height: 1.7;
    }

    .footer-en {
        display: none;
    }

    .footer-company {
        display: block;

        margin-bottom: 2px;

        font-size: 12px;
        font-weight: 600;
    }

    .footer-copy {
        display: block;

        color: rgba(255, 255, 255, .75);

        font-size: 10px;
    }

}


/* ==============================
   更小螢幕
============================== */

@media (max-width: 380px) {

    .mobile-course-buy {
        gap: 8px;

        padding:
            8px 10px
            8px 12px;
    }


    .mobile-price-label {
        font-size: 10px;
    }


    .mobile-price-row strong {
        font-size: 15px;
    }


    .mobile-price-sale strong {
        font-size: 17px;
    }


    .mobile-course-buy-btn {
        min-width: 92px;

        padding: 0 12px;

        font-size: 13px;
    }

}