:root {
    --primary-yellow: #ffe500;
    --primary-purple: #a051ff;
    --gray-bg: #f5f5f5;
    --dark-bg: #1a1a1a;
    --text-dark: #333333;
}

body {
    font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
    background-color: #FFF;
}

a:hover{text-decoration: none;}

p{font-size: 20px;}

img{width: 100%;}

.font-weight-900 { font-weight: 900; }

.con-title .icon {
    width: 100px;
    margin: 0 auto;
    display: block;
}


.ai-hero {
  position: relative;
  width: 100%;
  height: 780px;
  overflow: hidden;
  background: #111;
}

/* 背景（不動，只淡入） */
.bg-left,
.bg-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-size: cover;
  background-position: center;
  animation: bgFade 1.2s ease both;
}

.bg-left {
  left: 0;
  background-image:
    linear-gradient(rgba(140, 35, 255, .65), rgba(140, 35, 255, .65)),
    url("../images/bg-left.png");
}

.bg-right {
  right: 0;
  background-image:
    linear-gradient(rgba(255, 210, 0, .0), rgba(255, 210, 0, .78)),
    url("../images/bg-right.png");
}

/* 人物（彈跳進場） */
.hero-person {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  max-width: 70vw;
  z-index: 3;
  animation: personBounceIn 1.1s cubic-bezier(.22,1.25,.36,1) .35s both;
}

/* 中線 */
.center-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.8), transparent);
  z-index: 4;
  overflow: hidden;
}

/* 掃光 */
.center-line::after {
  content: "";
  position: absolute;
  left: -15px;
  top: -40%;
  width: 32px;
  height: 160px;
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  animation: scanLight 2s ease .8s both;
}

/* 圖片文字 */
.hero-text {
  position: absolute;
  left: 50%;
  bottom: 105px;
  transform: translateX(-50%);
  width: 90%;
  z-index: 5;
}

.hero-title-img {
  width: 900px;
  max-width: 100%;
  height: auto;
  animation: textUp .8s ease .7s both;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.3));
}

/* 底部音波 */
.equalizer {
  position: absolute;
  left: 0;
  bottom: 35px;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 25px;
  opacity: .4;
  z-index: 2;
}

.equalizer span {
  display: block;
  width: 18px;
  height: 25px;
  background: rgba(255,255,255,.7);
  animation: eqMove 1.2s ease-in-out infinite;
}

.equalizer span:nth-child(2n) { animation-delay: .15s; }
.equalizer span:nth-child(3n) { animation-delay: .3s; }
.equalizer span:nth-child(4n) { animation-delay: .45s; }

/* 動畫 */
@keyframes bgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes personBounceIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(.75);
  }
  55% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
  75% {
    transform: translateX(-50%) scale(.96);
  }
  100% {
    transform: translateX(-50%) scale(1);
  }
}

@keyframes scanLight {
  from { top: -40%; opacity: 0; }
  30% { opacity: 1; }
  to { top: 110%; opacity: 0; }
}

@keyframes textUp {
  from { opacity: 0; transform: translateY(35px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes eqMove {
  0%,100% { height: 20px; }
  50% { height: 60px; }
}

/* 手機 */
@media (max-width: 767px) {
  .ai-hero { height: 620px; }

  .hero-person {
    max-width: 150vw;
    bottom: 150px;
  }

  .hero-text { bottom: 70px; }

  .hero-text h1 {
    font-size: 32px;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 20px;
  }

  .equalizer span {
    width: 10px;
  }
}


/* 2. 前言區塊 */
.highlight-text {
    font-size: 1.8rem;
    background: linear-gradient(transparent 60%, var(--primary-yellow) 60%);
    display: inline-block;
}
.feature-card { border-top: 5px solid var(--primary-purple); border-radius: 15px; background: var(--gray-bg); }

.highlight-text span{background: #bb60f2;color: #FFF;padding: 5px 15px;border-radius: 5px;}

.category-btn {
  display: block;
  background: #f1f1f1;
  border-radius: 18px;
  padding: 22px 10px 18px;
  text-align: center;
  color: #111;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: #e4e4e4;
  transform: translateY(-3px);
  color: #000;
}

/* 👉 重點：選中狀態 */
.category-btn.active {
  background: #bb60f2;
  color: #fff;
}

.category-btn.active span {
  color: #fff;
}

.category-btn img {
  width: 38px;
  margin-bottom: 10px;
}

.category-btn span {
  display: block;
  font-size: 15px;
}

/* 👉 內容切換 */
.course-panel {
  display: none;
  animation: fadeIn .35s ease;
}

.course-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*AI主流工具生成實戰*/
.section-bg {
    background: url('../images/bg_gray.gif');
    background-size: 100%;
    background-position: top center;
    position: relative;
    padding: 80px 0;
    z-index: -1;
}

.section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 221, 0, 0.7);
    z-index: -1;
}

.section-content {
    position: relative;
    z-index: 2;
}

.feature-img {
    width: 100%;
    height: auto;
}

.feature-box {
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 25px 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-box small {
    color: #ccc;
    letter-spacing: 1px;
}

.feature-box h4 {
    font-weight: bold;
    margin: 10px 0;
}

.feature-box p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.6;
}

.feature-row {
    margin-bottom: 80px;
}
/**/
.calc-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.calc-item {
  background: #FFF;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  min-width: 160px;
  margin: 10px;
  transition: all 0.3s ease;
}

.calc-item:hover {
  background: #FFF;
  transform: translateY(-3px);
}

.calc-icon {
  width: 50px;
  display: block;
  margin: 0 auto 12px;
}

.calc-text {
  font-size: 15px;
  letter-spacing: 1px;
}

.calc-symbol {
  font-size: 28px;
  font-weight: bold;
  margin: 0 10px;
}
/* 3. 導覽列 */
.nav-btn {
    border: 2px solid #ddd;
    border-radius: 30px;
    color: #333;
    transition: all 0.3s;
    font-weight: bold;
}
.nav-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
    text-decoration: none;
}
/* 3-2. 課程介紹-1 */
.movie-course {
  font-family: "Noto Sans JP", "Microsoft JhengHei", sans-serif;
  color: #111;
}

.rounded-lg {
  border-radius: 18px;
}

.course-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  min-width: 80px;
  padding: 3px 12px;
  background: #27274d;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 1px;
}

.course-title {
  color: #e60012;
  font-size: 22px;
  font-weight: bold;
}

.movie-course hr {
  border-top: 1px dotted #999;
  margin: 16px 0;
}

.date-text {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.8;
}

.date-text small {
  color: #e60012;
  font-size: 15px;
  font-weight: bold;
}

.desc {
  font-size: 17px;
  line-height: 1.8;
}

.apply-btn {
  position: relative;
  display: block;
  background: #ed0012;
  color: #fff;
  text-align: center;
  padding: 18px 60px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 1px;
}

.apply-btn:hover {
  color: #fff;
  text-decoration: none;
  background: #d90010;
}

.apply-btn span {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #34d6d0, #8970ff);
  border-radius: 50%;
  line-height: 32px;
  text-align: center;
}

/* 4. 課程介紹 */

.bg-gray {
  background: url('../images/bg_gray.gif');
  background-size: 100%;
  background-position: top center;
}

/* 卡片容器 */
.course-list-wrapper {
  max-width: 1000px;
  background-color: #FFF;
  border-radius: 2%;
  padding: 5%;
}

/* ===== 每列 ===== */
.course-item {
  border-radius: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  border-left: 6px solid transparent;
}

/* ===== 預設：深色底 ===== */
.course-ai {
  background: rgba(139, 92, 246, 0.15);
  border-left-color: #8b5cf6;
}

.course-image {
  background: rgba(236, 72, 153, 0.15);
  border-left-color: #ec4899;
}

.course-video {
  background: rgba(6, 182, 212, 0.15);
  border-left-color: #06b6d4;
}

.course-design {
  background: rgba(34, 197, 94, 0.15);
  border-left-color: #22c55e;
}

/* ===== hover 變淡 ===== */
.course-ai:hover {
  background: rgba(139, 92, 246, 0.05);
}

.course-image:hover {
  background: rgba(236, 72, 153, 0.05);
}

.course-video:hover {
  background: rgba(6, 182, 212, 0.05);
}

.course-design:hover {
  background: rgba(34, 197, 94, 0.05);
}

/* ===== 左側 tag ===== */
.course-tag {
  min-width: 90px;
  padding: 8px 12px;
  margin-right: 20px;
  border-radius: 50px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
}

/* tag 顏色 */
.tag-ai {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.tag-image {
  background: linear-gradient(135deg, #ec4899, #f97316);
}

.tag-video {
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.tag-design {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

/* ===== 箭頭 ===== */
.course-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #ffd84d;   /* ← 黃色邊框 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  transition: 0.3s;
  color: #d4a900;              /* ← 箭頭顏色（深黃） */
  background: #fffbe6;         /* ← 淡黃色底（可要可不要） */
}

.course-item:hover .course-arrow {
  background: #ffd84d;
  border-color: #ffd84d;
  color: #333;
  transform: translateX(6px) scale(1.05); /* 小放大更有感 */
}

/* ===== 分類表頭 ===== */
.course-group-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin: 30px 0 10px;
  padding-left: 12px;
  position: relative;
  letter-spacing: 1px;
}

/* 左側色條 */
.course-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  border-radius: 3px;
}

/* 表頭顏色 */
.title-ai {
  color: #6366f1;
}
.title-ai::before {
  background: #6366f1;
}

.title-image {
  color: #ec4899;
}
.title-image::before {
  background: #ec4899;
}

.title-video {
  color: #06b6d4;
}
.title-video::before {
  background: #06b6d4;
}

.title-design {
  color: #22c55e;
}
.title-design::before {
  background: #22c55e;
}

/* ===== 手機優化 ===== */
@media (max-width: 576px) {
  .course-tag {
    min-width: 70px;
    font-size: 0.75rem;
    margin-right: 10px;
  }

  .course-arrow {
    display: none;
  }

  .course-item h4 {
    font-size: 1rem;
  }
}
/* 5. 受眾分析 */
.audience-card { border-radius: 10px; color: white; }
.audience-card h3 {
    background: #000;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 1.25rem;
}
.bg-pink { background: #ff7597; }
.bg-blue { background: #00a8ff; }
.bg-green { background: #4cd137; }

/* 6. 優惠表格 */
.pricing-section {padding: 80px 20px;text-align: center;}
.pricing-title {font-size: 2rem;margin-bottom: 30px;line-height: 1.4;}
.pricing-table-wrap {max-width: 800px;margin: 0 auto;overflow-x: auto;}
.pricing-table {width: 100%;border-collapse: collapse;background: #fff;color: var(--text-dark);border-radius: 10px;overflow: hidden;}
.pricing-table th {background-color: #bb60f2;color: #fff;padding: 20px;font-size: 1.1rem;border: 1px solid #FFF;}
.pricing-table td {padding: 20px;border: 1px solid #ddd;font-size: 1.05rem;font-weight: bold;vertical-align: middle;}
.discount-highlight-1 {background-color: #fff9c4;}
.discount-highlight-2 {background-color: #fbc02d;position: relative;}
.price-tag {background: var(--gray-bg);padding: 5px 10px;border-radius: 20px;border: 1px solid #ccc;display: inline-block;}
.best-badge {display: inline-block;margin-top: 6px;color: red;background: #fff;padding: 2px 8px;border-radius: 12px;font-size: 0.8rem;border: 1px solid #333;font-weight: bold;}

/* footer 雲*/

.ai-future-section {padding: 60px 0;}
.ai-future-box {border-radius: 32px;overflow: hidden;background:linear-gradient(rgba(255,255,255,0.15),rgba(255,255,255,0.15)),url(../images/footer_bg.jpg) center center / cover no-repeat;display: flex;
align-items: center;justify-content: center;background-attachment: fixed;min-height: 450px;}
.preface{border-radius: 32px;overflow: hidden;background:linear-gradient(rgba(255,255,255,0.15),rgba(255,255,255,0.15)),url(../images/Preface.png) center center / cover no-repeat;display: flex;
align-items: center;justify-content: center;background-attachment: fixed;min-height: 450px;}
.ai-future-content {text-align: center;padding: 40px 24px;font-weight: 600;}
.ai-future-content h2 {font-size: 36px;font-weight: 700;color: #000;margin-bottom: 20px;text-shadow: 0 3px 12px rgba(0,0,0,0.35);}
.ai-future-content p {font-size: 20px;line-height: 2;color: #000;margin-bottom: 0;text-shadow: 0 2px 10px rgba(0,0,0,0.35);}
.ai-future-content span{background-color: #fef905;}

/* btnLink */
section#btnLink{position: relative;}

.cta-card {position: relative;display: flex;align-items: center;min-height: 150px;padding: 18px 68px 18px 20px;border: 1px solid #222;border-radius: 22px;color: #111;text-decoration: none;overflow: hidden;background: #fff;}
.cta-card:hover {color: #111;text-decoration: none;}
.cta-img {width: 52%;height: 120px;overflow: hidden;border-radius: 14px;}
.cta-img img {width: 100%;height: 100%;object-fit: cover;transition: transform .35s ease;}
.cta-card:hover .cta-img img {transform: scale(.94);}
.cta-text {width: 48%;text-align: center;}
.cta-text h3 {font-size: 26px;font-weight: 900;margin-bottom: 12px;letter-spacing: 1px;}
.cta-text p {font-size: 16px;margin: 0;line-height: 1.8;}
.cta-arrow {position: absolute;right: 24px;top: 50%;transform: translateY(-50%);width: 38px;height: 38px;border-radius: 50%;background: linear-gradient(135deg, #49d6ff, #c85cff, #6ee86e);color: #fff;font-size: 24px;line-height: 36px;text-align: center;transition: transform .3s ease;}
.cta-card:hover .cta-arrow {transform: translateY(-50%) translateX(4px);}

.course-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}

.tab-btn {
  width: 210px;
  height: 88px;
  border: 0;
  border-radius: 18px;
  background: #eee;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: #e60012;
  color: #fff;
  transform: translateY(-3px);
}

.course-panel {
  display: none;
  animation: fadeIn .35s ease;
}

.course-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media(min-width: 1441px){.container {max-width: 1320px;}}

@media (max-width: 767px) {
  .ai-future-section {
    padding: 40px 0;
  }

  .ai-future-box {
    min-height: 360px;
    border-radius: 24px;
  }

  .ai-future-content h2 {
    font-size: 28px;
  }

  .ai-future-content p {
    font-size: 17px;
    line-height: 1.8;
  }
  .pricing-title {
  font-size: 1.6rem;
}

.pricing-table th,
.pricing-table td {
  padding: 14px;
  font-size: 0.95rem;
}
}


/* 手機版 */
@media (max-width: 767px) {
  .cta-card {
    flex-direction: column;
    padding: 16px 16px 58px;
  }

  .cta-img,
  .cta-text {
    width: 100%;
  }

  .cta-img {
    height: 180px;
  }

  .cta-text {
    padding-left: 0;
    padding-top: 18px;
  }

  .cta-text h3 {
    font-size: 22px;
  }

  .cta-arrow {
    right: 50%;
    top: auto;
    bottom: 14px;
    transform: translateX(50%);
  }

  .cta-card:hover .cta-arrow {
    transform: translateX(50%) translateX(4px);
  }
    .calc-wrap {
    flex-direction: column;
  }

  .calc-item {
    width: 85%;
    max-width: 320px;
    margin: 8px 0;
  }

  .calc-symbol {
    margin: 4px 0;
    font-size: 26px;
  }
}