.youth-wrapper {
  max-width: 960px;
  margin: 40px auto;
  position: relative;
}

.youth-header {
  background-color: #ffd816;
  color: #333;
  padding: 20px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  z-index: 2;
}

.youth-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-top: 60px; /* 預留空間給覆蓋的 header */
  position: relative;
  z-index: 1;
}

.youth-step {
  padding: 40px 20px;
  border-right: 1px solid #ddd;
}

.youth-step:last-child {
  border-right: none;
}

.youth-btn {
  margin-top: 20px;
  padding: 12px 24px;
  border: 2px solid #f95d3c;
  color: #f95d3c;
  background: white;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.youth-btn:hover {
  background: #f95d3c;
  color: white;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  background: #f8f8f8;
  margin: 0;
  padding: 0;
}

.youth-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  margin: 0 auto;
}

.youth-step-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.youth-image-top {
  position: absolute;
  top: -49px;
  left: -38px;
  width: 190px;
  z-index: 5;
}

.youth-image-bottom {
  position: absolute;
  bottom: -50px;
  right: -30px;
  width: 100px;
  z-index: 4;
}


@media (max-width: 768px) {
  .youth-image-top {
    top: -17px;
    left: 11%;
    transform: translateX(-50%);
    width: 83px;
  }

  .youth-image-bottom {
    bottom: 16px;
    right: 10px;
    width: 80px;
  }
}



.btn-icon {
  width: 32px;
  height: 32px;
  transition: all 0.3s ease;
}

.youth-btn:hover .btn-icon {
  transform: translateX(5px);
}

.youth-btn .btn-icon {
  content: url("../images/sportAdmin/arrow.png");
}

.youth-btn:hover .btn-icon {
  content: url("../images/sportAdmin/arrow_closure.png");
}

.youth-btn-rounded {
  border-radius: 30px;
  min-width: 150px;
  padding: 10px 20px;
  font-size: 16px;
}

.youth-btn-hover {
  background-color: white;
  color: #f15a29;
  border: 2px solid #f15a29;
  transition: 0.3s;
}

.youth-btn-hover:hover {
  background-color: #f15a29;
  color: white;
}

/* 合作店家專區樣式 */
.vendor-wrapper {
  max-width: 960px;
  margin: 40px auto;
  position: relative;
}

.vendor-header {
  background-color: #c1c0bd;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  z-index: 2;
}

.vendor-container {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding-top: 60px;
  position: relative;
  z-index: 1;
}

.vendor-step {
  padding: 40px 20px;
  border-right: 1px solid #ddd;
}

.vendor-step:last-child {
  border-right: none;
}

.vendor-btn {
  margin-top: 20px;
  padding: 12px 24px;
  border: 2px solid #FF6B00;
  color: #FF6B00;
  background: white;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vendor-btn:hover {
  background: #FF6B00;
  color: white;
}

.vendor-btn:hover .vendor-btn-icon {
  content: url("../images/sportAdmin/arrow_closure.png");
}

.vendor-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  color: #000000;
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
  margin: 0 auto;
}

.vendor-step-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.vendor-image-top {
  position: absolute;
  top: -49px;
  left: -38px;
  width: 190px;
  z-index: 5;
}

.vendor-image-bottom {
  position: absolute;
  bottom: -50px;
  right: -30px;
  width: 100px;
  z-index: 4;
}

@media (max-width: 768px) {
  .vendor-image-top {
    top: -17px;
    left: 11%;
    transform: translateX(-50%);
    width: 83px;
  }

  .vendor-image-bottom {
    bottom: 16px;
    right: 10px;
    width: 80px;
  }
}

.vendor-btn-icon {
  width: 32px;
  height: 32px;
  content: url("../images/sportAdmin/arrow.png");
  transition: content 0.3s ease;
}

.vendor-btn:hover .vendor-btn-icon {
  content: url("../images/sportAdmin/arrow_closure.png");
}

/* 回到頂部按鈕樣式 */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #FF6B00;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: #FF8533;
  transform: translateY(-3px);
}

.scroll-to-top.show {
  display: flex;
}

.scroll-to-top i {
  font-size: 24px;
  color: white;
}

/* 新按鈕樣式 */
.new-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: #ffffff;
  border: 2px solid #f15a29;
  border-radius: 30px;
  color: #f15a29;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.new-btn:hover {
  background: #f15a29;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 90, 41, 0.2);
}

.new-btn-icon {
  width: 24px;
  height: 24px;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.new-btn:hover .new-btn-icon {
  transform: translateX(5px);
}

.new-btn .new-btn-icon {
  content: url("../../images/sportAdmin/arrow.png");
}

.new-btn:hover .new-btn-icon {
  content: url("../../images/sportAdmin/arrow_closure.png");
}

/* 按鈕點擊效果 */
.new-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(241, 90, 41, 0.2);
}

/* 按鈕禁用狀態 */
.new-btn:disabled {
  background: #f5f5f5;
  border-color: #dddddd;
  color: #999999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.new-btn:disabled .new-btn-icon {
  opacity: 0.5;
}



/* 行政公告區塊樣式 */
.wave-section {
  position: relative;
  background: #f6a915;
  padding: 61px 20px;
  overflow: hidden;
  clip-path: url(#concaveClip);
  -webkit-clip-path: url(#concaveClip);
}

.announcement-container {
  background: white;
  border-radius: 25px;
  max-width: 800px;
  margin: auto;
  display: flex;
  padding: 40px 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.announcement-title {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.announcement-list {
  flex: 3;
}

.announcement-item {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  font-size: 14px;
}

.announcement-item span {
  margin-right: 15px;
  color: #333;
}

.announcement-item a {
  color: #1a1a6d;
  text-decoration: none;
  flex: 1;
}

.announcement-item .date {
  color: #555;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .announcement-container {
    flex-direction: column;
    padding: 20px;
  }
  
  .announcement-title {
    margin-bottom: 20px;
  }
  
  .announcement-list {
    width: 100%;
  }
}

/* 贊助區塊背景色塊與按鈕顏色 */
.sponsorship-bg {
  background: #faf7f2;
  border-radius: 40px;
  box-shadow: 0 8px 32px rgba(255,167,38,0.08);
  padding: 56px 0 56px 0;
  margin: 0 auto;
  max-width: 1200px;
}
.btn-sponsor-orange {
  background: #FF8A3D;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 36px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-sponsor-orange:hover, .btn-sponsor-orange:focus {
  background: #e25b3c;
  color: #fff;
}
.btn-sponsor-yellow {
  background: #FFC94D;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 36px;
  font-size: 1.2rem;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-sponsor-yellow:hover, .btn-sponsor-yellow:focus {
  background: #f6b800;
  color: #fff;
}
.sponsorship-split .row {
  min-height: 380px;
}
.sponsorship-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: left;
}
.sponsorship-img-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsorship-img-wrap {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsorship-img-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(255,167,38,0.10);
}
.sponsorship-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sponsorship-img-deco {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 12px solid #FFA726;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .sponsorship-bg {
    padding: 32px 0;
    border-radius: 24px;
  }
  .sponsorship-img-wrap {
    width: 220px;
    height: 220px;
  }
}
@media (max-width: 768px) {
  .sponsorship-bg {
    padding: 16px 0;
    border-radius: 16px;
  }
  .sponsorship-split .row {
    flex-direction: column-reverse;
    min-height: unset;
  }
  .sponsorship-img-col, .sponsorship-text-col {
    justify-content: center !important;
    text-align: center;
    margin-bottom: 24px;
  }
  .sponsorship-img-wrap {
    margin: 0 auto 16px auto;
  }
}

.sponsor-btn-box {
  background: #fff7ed;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(255,167,38,0.08);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .sponsor-btn-box {
    flex-direction: column;
    padding: 16px 12px;
    gap: 12px;
    width: 100%;
    margin: 16px auto 0 auto;
  }
}

/* 新版贊助區塊 modern 版 */
.sponsorship-modern {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #faf7f2;
  padding: 64px 0 64px 0;
  position: relative;
}
.sponsorship-modern-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.sponsorship-modern-left {
  flex: 1;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sponsorship-modern-left h2 {
  font-size: 3rem;
  font-weight: 900;
  color: #3a1a0a;
  margin-bottom: 24px;
  letter-spacing: 2px;
}
.sponsorship-modern-left p {
  font-size: 1.25rem;
  color: #444;
  margin-bottom: 40px;
  line-height: 1.7;
}
.sponsorship-modern-btns {
  display: flex;
  gap: 32px;
}
.sponsorship-modern-btn {
  display: inline-block;
  min-width: 160px;
  text-align: center;
  padding: 18px 40px;
  border-radius: 40px;
  font-size: 1.5rem;
  font-weight: 700;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,167,38,0.10);
  letter-spacing: 1px;
}
.sponsorship-modern-btn.orange {
  background: linear-gradient(90deg, #FF8A3D 0%, #FFA726 100%);
  color: #fff;
}
.sponsorship-modern-btn.orange:hover {
  background: #e25b3c;
  color: #fff;
  box-shadow: 0 8px 32px rgba(255,167,38,0.18);
}
.sponsorship-modern-btn.yellow {
  background: linear-gradient(90deg, #FFC94D 0%, #FFD966 100%);
  color: #fff;
}
.sponsorship-modern-btn.yellow:hover {
  background: #f6b800;
  color: #fff;
  box-shadow: 0 8px 32px rgba(255,201,77,0.18);
}
.sponsorship-modern-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 340px;
}
.sponsorship-modern-ellipse-wrap {
  position: relative;
  width: 400px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsorship-modern-ellipse-svg {
  width: 400px;
  height: 300px;
  display: block;
}
@media (max-width: 991px) {
  .sponsorship-modern-container {
    flex-direction: column;
    gap: 24px;
    padding: 0 12px;
  }
  .sponsorship-modern-left {
    padding-left: 0;
    align-items: center;
    text-align: center;
  }
  .sponsorship-modern-right {
    min-width: 0;
  }
  .sponsorship-modern-ellipse-wrap {
    width: 300px;
    height: 220px;
  }
  .sponsorship-modern-ellipse-svg {
    width: 300px;
    height: 220px;
  }
}
@media (max-width: 600px) {
  .sponsorship-modern {
    padding: 32px 0 32px 0;
  }
  .sponsorship-modern-left h2 {
    font-size: 2rem;
  }
  .sponsorship-modern-btns {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: center;
  }
  .sponsorship-modern-ellipse-wrap {
    width: 200px;
    height: 140px;
  }
  .sponsorship-modern-ellipse-svg {
    width: 200px;
    height: 140px;
  }
}

/* 新版各項補助申請區塊 modern 版 */
.subsidy-apply-modern {
  position: relative;
  background: #f6b800;
  padding: 0 0 80px 0;
  overflow: hidden;
}
.subsidy-apply-modern-bg {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100vw;
  height: 100%;
  z-index: 1;
  background: #f6b800;
}
.subsidy-apply-modern-wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}
.subsidy-apply-modern-container {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 48px;
}
.subsidy-apply-modern-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #191919;
  margin-bottom: 48px;
  letter-spacing: 2px;
}
.subsidy-apply-modern-cards {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: stretch;
}
.subsidy-apply-modern-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  width: 420px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}
.subsidy-apply-modern-card-header {
  background: #f2f3f4;
  color: #191919;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  padding: 24px 0 16px 0;
  letter-spacing: 1px;
}
.subsidy-apply-modern-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0 32px 0;
}
.subsidy-apply-modern-card-desc {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.7;
}
.subsidy-apply-modern-btn {
  display: inline-block;
  background: #111;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 32px;
  padding: 12px 40px;
  text-align: center;
  letter-spacing: 2px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.subsidy-apply-modern-btn:hover {
  background: #f6b800;
  color: #111;
  box-shadow: 0 8px 32px rgba(246,184,0,0.18);
}
@media (max-width: 991px) {
  .subsidy-apply-modern-cards {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .subsidy-apply-modern-card {
    width: 90%;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .subsidy-apply-modern-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  .subsidy-apply-modern-card-header {
    font-size: 1.1rem;
    padding: 16px 0 10px 0;
  }
  .subsidy-apply-modern-card-body {
    padding: 18px 0 18px 0;
  }
  .subsidy-apply-modern-card-desc {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .subsidy-apply-modern-btn {
    font-size: 1rem;
    padding: 10px 24px;
  }
}

/* 新版更多服務區塊 modern 版 */
.more-services-modern {
  background: #fff;
  padding: 0 0 80px 0;
}
.more-services-modern-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
}
.more-services-modern-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: #191919;
  margin-bottom: 48px;
  letter-spacing: 2px;
}
.more-services-modern-cards {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: stretch;
}
.more-services-modern-card {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  width: 340px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 24px 24px 24px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.more-services-modern-card.orange {
  background: #f6b800;
  color: #fff;
}
.more-services-modern-card.gray {
  background: #f4f5f7;
  color: #222;
}
.more-services-modern-icon {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.more-services-modern-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: inherit;
  line-height: 1.4;
}
.more-services-modern-card-desc {
  font-size: 1.05rem;
  color: #fff;
  text-align: center;
  line-height: 1.7;
}
.more-services-modern-card.gray .more-services-modern-card-desc {
  color: #888;
}
.more-services-modern-card.gray .more-services-modern-card-title {
  color: #222;
}
.more-services-modern-card.orange .more-services-modern-card-title {
  color: #191919;
}
.more-services-modern-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.more-services-modern-card-more-text {
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  width: 100%;
}
.more-services-modern-card:hover {
  box-shadow: 0 16px 40px rgba(246,184,0,0.18);
  transform: translateY(-4px) scale(1.03);
}
.more-services-modern-card-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
}
.more-services-modern-card-clickable:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 20px 48px rgba(246,184,0,0.25);
  transform: translateY(-6px) scale(1.05);
}
.more-services-modern-card-clickable:focus {
  outline: 3px solid #f6b800;
  outline-offset: 2px;
}
@media (max-width: 991px) {
  .more-services-modern-cards {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }
  .more-services-modern-card {
    width: 90%;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .more-services-modern-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }
  .more-services-modern-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  .more-services-modern-card {
    padding: 18px 8px 12px 8px;
    min-height: 180px;
  }
  .more-services-modern-card-desc {
    font-size: 0.95rem;
  }
  .more-services-modern-card-more-text {
    font-size: 1.1rem;
  }
}

/* 新版頁尾區塊 modern 版 */
.footer-modern {
  background: #23272a;
  color: #fff;
  padding: 0 0 32px 0;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}
.footer-modern-wave-wrap {
  width: 100vw;
  height: 80px;
  position: relative;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}
.footer-modern-wave {
  width: 100vw;
  height: 80px;
  display: block;
}
.footer-modern-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 2.1;
  letter-spacing: 1px;
  z-index: 2;
  position: relative;
}
.footer-modern-content div {
  margin-bottom: 2px;
}
@media (max-width: 991px) {
  .footer-modern-content {
    font-size: 0.95rem;
    padding: 0 8px;
  }
}
@media (max-width: 600px) {
  .footer-modern-content {
    font-size: 0.8rem;
    line-height: 1.7;
    padding: 0 4px;
  }
  .footer-modern-wave-wrap, .footer-modern-wave {
    height: 40px;
    min-height: 20px;
  }
}

/* SVG 相容性和錯誤處理 */
svg {
  /* 確保 SVG 在所有瀏覽器中正確顯示 */
  display: block;
  max-width: 100%;
  height: auto;
}

/* 修復 IE 和 Edge 的 SVG 顯示問題 */
.sponsorship-modern-ellipse-svg {
  width: 400px !important;
  height: 300px !important;
  display: block !important;
}

.subsidy-apply-modern-wave {
  width: 100% !important;
  height: 120px !important;
  display: block !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
}

/* 確保 SVG 圖片正確裁剪 */
svg image {
  pointer-events: none;
}

/* 如果 SVG 圖片載入失敗，確保其他元素仍然可見 */
svg ellipse, svg circle, svg path {
  pointer-events: none;
}

/* 媒體查詢中的 SVG 響應式設計 */
@media (max-width: 991px) {
  .sponsorship-modern-ellipse-svg {
    width: 300px !important;
    height: 220px !important;
  }
}

@media (max-width: 600px) {
  .sponsorship-modern-ellipse-svg {
    width: 200px !important;
    height: 140px !important;
  }
}

/* 確保 SVG 在載入時不會閃爍 */
.sponsorship-modern-ellipse-wrap,
.subsidy-apply-modern-bg {
  opacity: 0;
  animation: fadeInSVG 0.8s ease-in-out 0.3s forwards;
}

@keyframes fadeInSVG {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ======================================
   民眾領取青春動滋券 - 小氣泡專用樣式
   獨立CSS，不影響現有樣式
   ====================================== */

/* 基本氣泡樣式 */
.youth-bubble {
    position: absolute;
    border-radius: 100%;
    opacity: 0.8;
    pointer-events: none;  /* 不阻擋滑鼠事件 */
}

/* 氣泡大小變化 */
.youth-bubble-big {
    width: 60px;
    height: 60px;
}

.youth-bubble-medium {
    width: 35px;
    height: 35px;
}

.youth-bubble-small {
    width: 20px;
    height: 20px;
}

.youth-bubble-tiny {
    width: 12px;
    height: 12px;
}

/* 氣泡位置 - 民眾區域專用 */
.youth-bubble-pos-1 {
    top: -9%;
    left: -8%;
    z-index: 2;
}

.youth-bubble-pos-2 {
    top: 15%;
    right: 112%;
    z-index: 1;
}

.youth-bubble-pos-3 {
    top: 35%;
    left: 5%;
    z-index: 3;
}

.youth-bubble-pos-4 {
    bottom: 20%;
    right: 8%;
    z-index: 2;
}

.youth-bubble-pos-5 {
    bottom: 35%;
    left: 20%;
    z-index: 1;
}

.youth-bubble-pos-6 {
    top: 45%;
    right: -10%;
    z-index: 2;
}

/* 氣泡顏色 */
.youth-bubble-primary {
    background-color: #258074;  /* 主綠色 */
}

.youth-bubble-secondary {
    background-color: #E9684E;  /* 橙色 */
}

.youth-bubble-tertiary {
    background-color: #0A332D;  /* 深綠色 */
}

.youth-bubble-light-1 {
    background-color: #f8f9fa;  /* 淺灰 */
}

.youth-bubble-light-2 {
    background-color: #e9ecef;  /* 中淺灰 */
}

.youth-bubble-light-3 {
    background-color: #dee2e6;  /* 中灰 */
}

/* 漸變氣泡 */
.youth-bubble-gradient {
    background: linear-gradient(135deg, #258074 0%, #E9684E 100%);
}

.youth-bubble-gradient-soft {
    background: linear-gradient(135deg, rgba(37, 128, 116, 0.6) 0%, rgba(233, 104, 78, 0.6) 100%);
}

/* 動畫效果 */
.youth-bubble-float {
    animation: youthAppear 1.5s ease-out forwards, youthFloat 4s ease-in-out infinite 1.5s;
}

.youth-bubble-float-slow {
    animation: youthAppear 1.5s ease-out forwards, youthFloat 6s ease-in-out infinite 1.5s;
}

.youth-bubble-pulse {
    animation: youthAppear 1.5s ease-out forwards, youthPulse 3s ease-in-out infinite 1.5s;
}

/* 動畫關鍵幀 */
@keyframes youthFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes youthPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 出現動畫 */
.youth-bubble-appear {
    opacity: 0;
}

@keyframes youthAppear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

/* 延遲動畫 */
.youth-bubble-delay-1 { animation-delay: 0.2s; }
.youth-bubble-delay-2 { animation-delay: 0.4s; }
.youth-bubble-delay-3 { animation-delay: 0.6s; }
.youth-bubble-delay-4 { animation-delay: 0.8s; }
.youth-bubble-delay-5 { animation-delay: 1.0s; }
.youth-bubble-delay-6 { animation-delay: 1.2s; }

/* 響應式設計 */
@media (max-width: 991px) {
    .youth-bubble-big { width: 45px; height: 45px; }
    .youth-bubble-medium { width: 28px; height: 28px; }
    .youth-bubble-small { width: 16px; height: 16px; }
    .youth-bubble-tiny { width: 10px; height: 10px; }
    
    .youth-bubble-pos-1 { top: 5%; left: 8%; }
    .youth-bubble-pos-2 { top: 12%; right: 12%; }
    .youth-bubble-pos-3 { top: 30%; left: 3%; }
    .youth-bubble-pos-4 { bottom: 15%; right: 5%; }
    .youth-bubble-pos-5 { bottom: 30%; left: 15%; }
    .youth-bubble-pos-6 { top: 40%; right: 20%; }
}

@media (max-width: 767px) {
    .youth-bubble-big { width: 35px; height: 35px; }
    .youth-bubble-medium { width: 22px; height: 22px; }
    .youth-bubble-small { width: 14px; height: 14px; }
    .youth-bubble-tiny { width: 8px; height: 8px; }
    
    .youth-bubble-pos-1 { top: 3%; left: 5%; }
    .youth-bubble-pos-2 { top: 8%; right: 8%; }
    .youth-bubble-pos-3 { top: 25%; left: 2%; }
    .youth-bubble-pos-4 { bottom: 10%; right: 3%; }
    .youth-bubble-pos-5 { bottom: 25%; left: 10%; }
    .youth-bubble-pos-6 { top: 35%; right: 15%; }
}

/* 特殊效果 */
.youth-bubble-glow {
    box-shadow: 0 0 15px rgba(37, 128, 116, 0.4);
}

.youth-bubble-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
