.elementor-27697 .elementor-element.elementor-element-78d8ce0 .elementor-wrapper{--video-aspect-ratio:1.77777;filter:brightness( 100% ) contrast( 100% ) saturate( 100% ) blur( 0px ) hue-rotate( 0deg );}/* Start custom CSS for video, class: .elementor-element-78d8ce0 *//* Hero 區塊 */
.yiwei-video-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #2c1a0e;
}

/* Elementor Video 元件容器 */
.yiwei-video-hero .elementor-widget-video,
.yiwei-video-hero .elementor-wrapper,
.yiwei-video-hero .elementor-custom-embed-image-overlay {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* MP4 video */
.yiwei-video-hero video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #000;
}

/* iframe（如果未來換 youtube/vimeo） */
.yiwei-video-hero iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* 深色遮罩 */
.yiwei-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(25, 12, 5, 0.35);
  pointer-events: none;
}

/* 文字內容 */
.yiwei-video-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
}

/* 主標題 */
.yiwei-video-title {
  margin: 0 0 20px;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.45);
}

/* 副標題 */
.yiwei-video-subtitle {
  max-width: 760px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.9;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* 手機版 */
@media (max-width: 768px) {

  .yiwei-video-hero {
    min-height: 72vh;
  }

  .yiwei-video-content {
    min-height: 72vh;
    padding: 24px 18px;
  }

  .yiwei-video-title {
    font-size: 34px;
    line-height: 1.35;
  }

  .yiwei-video-subtitle {
    font-size: 16px;
    line-height: 1.8;
  }
}/* End custom CSS */
/* Start custom CSS for shortcode, class: .elementor-element-dcb891d */.yiwei-oceanwp {
  width: 100%;
  overflow-x: hidden;
}

.yiwei-oceanwp,
.yiwei-oceanwp * {
  box-sizing: border-box;
}

.yiwei-oceanwp * { box-sizing: border-box; margin: 0; padding: 0; }

.yiwei-oceanwp { scroll-behavior: smooth; }

.yiwei-oceanwp {
      background-color: #ffffff;
      color: #2c1a0e;
      font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
      font-size: 16px;
      line-height: 1.8;
    }

.yiwei-oceanwp img {
      max-width: 100%;
      height: auto;
      display: block;
      border-radius: 8px;
    }

.yiwei-oceanwp a {
      color: #8b2e0e;
      text-decoration: underline;
      transition: color 0.2s;
    }

.yiwei-oceanwp a:hover { color: #c44a1a; }

.yiwei-oceanwp .site-nav {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.95);
      border-bottom: 1px solid #e0d8cf;
      padding: 0 24px;
    }

.yiwei-oceanwp .site-nav__inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 4px;
      height: 56px;
      overflow-x: auto;
    }

.yiwei-oceanwp .site-nav__logo {
      flex-shrink: 0;
      height: 36px;
      width: auto;
      border-radius: 0;
      margin-right: 12px;
    }

.yiwei-oceanwp .nav-link {
      flex-shrink: 0;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 14px;
      font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
      color: #6b5e52;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
      white-space: nowrap;
    }

.yiwei-oceanwp .nav-link:hover, .yiwei-oceanwp .nav-link.active {
      background: #f0ebe4;
      color: #8b2e0e;
    }

.yiwei-oceanwp .chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  
  padding: 16px 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  }

.yiwei-oceanwp .chapter-btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #7a1a1a;
  color: #fff;
  font-family: "jf-jinxuan-heavy", "Noto Serif TC", serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid #9b2c2c;
  transition: background 0.2s, transform 0.15s;
  }

.yiwei-oceanwp .chapter-btn:hover {
  background-color: #9b2c2c;
  color: #fff;
  transform: translateY(-2px);
  }

.yiwei-oceanwp .chapter-dropdown {
  position: relative;
  display: inline-block;
  }

.yiwei-oceanwp .chapter-dropdown:hover .chapter-dropdown__menu {
  display: flex;
  }

.yiwei-oceanwp .chapter-dropdown__menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  padding-top: 10px;
  z-index: 200;
  min-width: 160px;
  }

.yiwei-oceanwp .chapter-dropdown__item {
    display: block;
    padding: 8px 18px;
    background-color: #B5BDAC;
    color: #fff;
    font-family: "jf-jinxuan-heavy", "Noto Serif TC", serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-radius: 999px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #B5BDAC;
    transition: background 0.2s, transform 0.15s;
  }

.yiwei-oceanwp .chapter-dropdown__item:hover {
    background-color: #99A488;
    color: #fff;
    transform: translateY(-2px);
  }

.yiwei-oceanwp .chapter-book-link {
    font-family: "jf-jinxuan", "Noto Sans TC", sans-serif;
    width: 100%;           
    text-align: right;     
    font-size: 13px;
    color: #6b5e52;
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-top: 4px;
    transition: color 0.2s;
  }

.yiwei-oceanwp .chapter-book-link:hover {
    color: #8b2e0e;
  }

.yiwei-oceanwp .page-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px 80px;
    }

.yiwei-oceanwp .hero {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      margin: 32px 0 16px;
      
      min-height: 260px;
      max-height: 90vh;
    }

.yiwei-oceanwp .hero__bg {
      
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      border-radius: 0;
    }

.yiwei-oceanwp .hero__overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(20, 10, 5, 0.85) 0%, rgba(20, 10, 5, 0.3) 60%, transparent 100%);
      z-index: 1;
    }

.yiwei-oceanwp .hero__content {
      position: relative;
      z-index: 2;
      padding: 40px 40px 44px;
      color: #fff;
      
      min-height: inherit;
      display: flex;
      flex-direction: column;
    }

@media (max-width: 600px){

      .yiwei-oceanwp .hero__bg { object-position: center center; }
    
}

.yiwei-oceanwp .hero__label {
      font-size: 12px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      opacity: 0.7;
      margin-bottom: 12px;
      font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
    }

.yiwei-oceanwp .hero__title {
      font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
      font-size: 36px;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 16px;
    }

.yiwei-oceanwp .hero__book-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      background: rgba(255,255,255,0.15);
      border: 1px solid rgba(255,255,255,0.4);
      border-radius: 24px;
      color: #fff;
      font-size: 14px;
      text-decoration: none;
      transition: background 0.2s;
    }

.yiwei-oceanwp .hero__book-link:hover {
      background: rgba(255,255,255,0.28);
      color: #fff;
    }

.yiwei-oceanwp .section {
      margin-bottom: 80px;
      scroll-margin-top: 72px;
    }

.yiwei-oceanwp .section__header {
      display: flex;
      align-items: baseline;
      gap: 16px;
      margin-bottom: 28px;
      padding-bottom: 16px;
      border-bottom: 2px solid #8b2e0e;
    }

.yiwei-oceanwp .section__header--loose {
    margin-bottom: 28px;
    display: flex;
    justify-content: flex-start;
    padding-left: 220px;
    padding-right: 0;
  }

.yiwei-oceanwp .section__header--loose .section__title-wrap {
    padding-left: 0;
    margin-right: 0;
  }

.yiwei-oceanwp .section__title-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
  }

.yiwei-oceanwp .section__pen {
    height: 3.5em;
    width: auto;
    border-radius: 0;
    pointer-events: none;
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: center;
  }

.yiwei-oceanwp .section__number {
      font-family: "Noto Serif TC", "PMingLiU", "Microsoft JhengHei", serif;
      font-size: 11px;
      letter-spacing: 0.1em;
      color: #8b2e0e;
      text-transform: uppercase;
      flex-shrink: 0;
    }

.yiwei-oceanwp .section__title {
      font-family: "永順體", "Noto Serif TC", serif;
      font-size: 26px;
      font-weight: normal;
      line-height: 1.3;
      color: #860308;
	  font-weight: bold;
    }

.yiwei-oceanwp .section__title-icon {
    height: 1.4em;
    width: auto;
    border-radius: 0;
    vertical-align: middle;
    margin-right: 6px;
    display: inline;    
  }

.yiwei-oceanwp .prose-deco-wrap {
      position: relative;
      padding: 0 220px 120px 220px;   
      overflow: visible;
    }

.yiwei-oceanwp .prose-deco {
      position: absolute;
      width: 200px;
      height: 100%;       
      object-fit: contain;
      border-radius: 0;
      pointer-events: none;
      opacity: 0.85;
    }

.yiwei-oceanwp .prose-deco--left {
      left: 0;
      bottom: 0;
      top: 0;
      object-position: bottom left;   
    }

.yiwei-oceanwp .prose-deco--right {
      right: 0;
      top: 0;
      bottom: 0;
      object-position: top right;     
    }

@media (max-width: 900px){

      .yiwei-oceanwp .prose-deco-wrap { padding: 0 120px; }
      .yiwei-oceanwp .prose-deco { width: 110px; }
    
}

@media (max-width: 600px){

      .yiwei-oceanwp .prose-deco-wrap { padding: 0; }
      .yiwei-oceanwp .prose-deco { display: none; }
    
}

.yiwei-oceanwp .deco-stack--right {
      position: absolute;
      right: 0;
      top: 0;
      width: 200px;
      display: flex;
      flex-direction: column;
      pointer-events: none;
    }

.yiwei-oceanwp .deco-stack--left {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 200px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      pointer-events: none;
    }

@media (max-width: 900px){

      .yiwei-oceanwp .deco-stack--right, .yiwei-oceanwp .deco-stack--left { width: 110px; }
    
}

@media (max-width: 600px){

      .yiwei-oceanwp .deco-stack--right, .yiwei-oceanwp .deco-stack--left { display: none; }
    
}

.yiwei-oceanwp .longtan-splash--left {
      position: absolute;
      left: 0;
      top: 20%;
      width: 220px;
      pointer-events: none;
      z-index: 0;
    }

.yiwei-oceanwp .longtan-splash--left img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 0;
      opacity: 0.88;
    }

.yiwei-oceanwp .longtan-splash--right {
      position: absolute;
      right: 0;
      top: 0;
      width: 220px;
      pointer-events: none;
      z-index: 0;
    }

.yiwei-oceanwp .longtan-splash--right img {
      width: 100%;
      height: auto;
      display: block;
      border-radius: 0;
      opacity: 0.88;
    }

/* Part 2 Lite：內容裝飾、戰役卡片、地圖；避免 flex shorthand / grid / 1fr / CSS url */
.yiwei-oceanwp .daxi-deco--right {
  position: absolute;
  right: 0;
  top: 0;
  width: 220px;
  pointer-events: none;
  z-index: 0;
}

.yiwei-oceanwp .daxi-deco--left {
  position: absolute;
  left: 0;
  top: 20%;
  width: 220px;
  pointer-events: none;
  z-index: 0;
}

.yiwei-oceanwp .daxi-pic {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  opacity: 0.90;
}

.yiwei-oceanwp .daxi-leaf {
  width: 30%;
  height: auto;
  display: block;
  border-radius: 0;
  opacity: 0.88;
}

.yiwei-oceanwp .prose-deco-wrap--anping {
  padding-left: 220px;
  padding-right: 220px;
  position: relative;
  z-index: 1;
}

.yiwei-oceanwp .deco-stack--anping-left {
  position: absolute;
  left: 0;
  top: 0;
  width: 180px;
  pointer-events: none;
}

.yiwei-oceanwp .deco-stack--anping-left .img-bamboo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  opacity: 0.9;
}

.yiwei-oceanwp .anping-left-pic01 {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 700px;
  pointer-events: none;
  z-index: 0;
}

.yiwei-oceanwp .anping-left-pic01 .img-pic01 {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  opacity: 0.9;
}

.yiwei-oceanwp .anping-right-wrap {
  position: absolute;
  right: 0;
  top: 30%;
  width: 400px;
  pointer-events: none;
  z-index: 0;
}

.yiwei-oceanwp .anping-right-wrap .img-pic02 {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  opacity: 0.92;
}

.yiwei-oceanwp .prose p {
  margin-bottom: 20px;
  color: #555555;
  font-size: 15.5px;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.yiwei-oceanwp .prose p:last-child {
  margin-bottom: 0;
}

.yiwei-oceanwp .section-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}

.yiwei-oceanwp .section-image img {
  width: 100%;
  border-radius: 0;
}

.yiwei-oceanwp .section-image figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: #6b5e52;
  background: #f0ebe4;
  line-height: 1.5;
}

.yiwei-oceanwp .battle-grid {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.yiwei-oceanwp .battle-card {
  flex: 1 1 20%;
  max-width: 200px;
  min-width: 130px;
  margin: 4px;
  padding: 0;
  text-decoration: none;
  color: inherit;
  background-color: transparent;
  border-radius: 0;
}

.yiwei-oceanwp .battle-card:hover {
  background-color: transparent;
  opacity: 0.85;
}

.yiwei-oceanwp .battle-card__name {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 18px;
  font-weight: 700;
  color: #2a1a08;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 6px;
}

.yiwei-oceanwp .battle-card__date {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 15px;
  color: #2a1a08;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: underline;
}

.yiwei-oceanwp .battle-fire {
  position: absolute;
  top: 50%;
  width: 38%;
  height: auto;
  pointer-events: none;
}

.yiwei-oceanwp .battle-fire--left {
  left: 0;
}

.yiwei-oceanwp .battle-fire--right {
  right: 0;
}

.yiwei-oceanwp .battle-date {
  margin-left: -5em;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif !important;
  color: #860308 !important;
  display: inline-block !important;
  font-weight: bold !important;
}

.yiwei-oceanwp .section-intro {
  border-left: 3px solid #8b2e0e;
  padding: 14px 20px;
  margin-bottom: 28px;
  background: #f0ebe4;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  color: #6b5e52;
}

.yiwei-oceanwp .source-note {
  margin-top: 20px;
  font-size: 12px;
  color: #555555;
  padding-top: 12px;
  border-top: 1px dashed #e0d8cf;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.yiwei-oceanwp .anping-map-wrap {
  margin-top: 24px;
  text-align: center;
}

.yiwei-oceanwp .anping-map-img {
  display: inline-block;
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 0;
}

.yiwei-oceanwp .source-note--anping {
  border-top: none;
  padding-top: 8px;
  margin-top: 8px;
  text-align: center;
  max-width: 680px;
  width: 100%;
}

.yiwei-oceanwp .anping-map-wrap--row,
.yiwei-oceanwp .daxi-maps-row {
  margin-top: 24px;
  text-align: center;
}

.yiwei-oceanwp .anping-map-wrap--row .anping-map-img,
.yiwei-oceanwp .daxi-map-img {
  display: inline-block;
  width: 45%;
  max-width: 460px;
  height: auto;
  vertical-align: top;
  border-radius: 0;
}

.yiwei-oceanwp .daxi-maps-note {
  text-align: center;
  margin-top: 8px;
  border-top: none;
  padding-top: 0;
}

@media (max-width: 1200px) {
  .yiwei-oceanwp .anping-right-wrap {
    width: 320px;
  }

  .yiwei-oceanwp .anping-left-pic01 {
    width: 520px;
  }
}

@media (max-width: 900px) {
  .yiwei-oceanwp .daxi-deco--right,
  .yiwei-oceanwp .daxi-deco--left {
    width: 150px;
  }

  .yiwei-oceanwp .prose-deco-wrap--anping {
    padding-left: 120px;
    padding-right: 120px;
  }

  .yiwei-oceanwp .anping-right-wrap {
    width: 220px;
  }

  .yiwei-oceanwp .anping-left-pic01 {
    width: 380px;
  }
}

@media (max-width: 600px) {
  .yiwei-oceanwp .daxi-deco--right,
  .yiwei-oceanwp .daxi-deco--left,
  .yiwei-oceanwp .deco-stack--anping-left,
  .yiwei-oceanwp .anping-left-pic01,
  .yiwei-oceanwp .anping-right-wrap,
  .yiwei-oceanwp .battle-fire {
    display: none;
  }

  .yiwei-oceanwp .prose-deco-wrap--anping {
    padding-left: 0;
    padding-right: 0;
  }

  .yiwei-oceanwp .battle-date {
    margin-left: 0;
  }

  .yiwei-oceanwp .battle-card {
    flex: 1 1 100%;
    max-width: 280px;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .yiwei-oceanwp .anping-map-wrap--row .anping-map-img,
  .yiwei-oceanwp .daxi-map-img {
    display: block;
    width: 100%;
    max-width: 100%;
  }
}

/* Part 3 Lite：時間軸、月份按鈕、彈窗、頁尾 */
.yiwei-oceanwp .image-gallery {
  margin: 24px 0;
  text-align: center;
}

.yiwei-oceanwp .image-gallery figure {
  display: inline-block;
  width: 30%;
  min-width: 240px;
  margin: 8px;
  vertical-align: top;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
}

.yiwei-oceanwp .image-gallery figure img {
  width: 100%;
  border-radius: 0;
}

.yiwei-oceanwp .image-gallery figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #6b5e52;
  background: #f0ebe4;
}

.yiwei-oceanwp .timeline {
  margin-top: 28px;
}

.yiwei-oceanwp .timeline-group {
  margin-bottom: 40px;
  border: 1px solid #c8c0b8;
  width: 100%;
  display: table;
  border-spacing: 0;
}

.yiwei-oceanwp .timeline-group__header {
  display: table-row;
  background-color: #d6cfc7;
}

.yiwei-oceanwp .timeline-group__header-date,
.yiwei-oceanwp .timeline-date {
  display: table-cell;
  width: 140px;
  padding: 14px 20px;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  color: #2c1a0e;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #c8c0b8;
}

.yiwei-oceanwp .timeline-group__header-event,
.yiwei-oceanwp .timeline-content {
  display: table-cell;
  padding: 14px 20px;
  color: #2c1a0e;
  vertical-align: middle;
}

.yiwei-oceanwp .timeline-item {
  display: table-row;
  border-top: 1px solid #c8c0b8;
}

.yiwei-oceanwp .timeline-date {
  font-size: 13px;
  white-space: nowrap;
  background-color: #ffffff;
}

.yiwei-oceanwp .timeline-content {
  font-size: 14px;
  line-height: 1.8;
  background-color: #ffffff;
}

.yiwei-oceanwp .timeline-item--year-cell .timeline-date {
  font-size: 20px;
  font-weight: 700;
}

.yiwei-oceanwp .tl-visual {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  margin-bottom: 48px;
  padding: 0 16px;
  gap: 16px;
}

.yiwei-oceanwp .tl-col--start,
.yiwei-oceanwp .tl-col--end {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(120px, 22%, 200px);
  text-align: center;
}

.yiwei-oceanwp .tl-col--mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  text-align: center;
}

.yiwei-oceanwp .tl-btn-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 14px;
}

.yiwei-oceanwp .tl-btn-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.yiwei-oceanwp .tl-btn-text {
  position: relative;
  z-index: 1;
  display: block;
  padding-top: 18px;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 40px;
  color: #860308;
}

.yiwei-oceanwp .tl-date {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
  font-weight: bold;
}

.yiwei-oceanwp .tl-line {
  width: 80%;
  max-width: 180px;
  height: auto;
  border-radius: 0;
  margin: 0 auto 12px;
}

.yiwei-oceanwp .tl-desc {
  font-size: 14px;
  color: #555555;
  line-height: 1.8;
  max-width: 220px;
  margin: 0 auto;
}

.yiwei-oceanwp .tl-month-btn-wrap {
  position: relative;
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 8px auto;
  text-align: center;
  cursor: pointer;
}

.yiwei-oceanwp .tl-month-bg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.yiwei-oceanwp .tl-month-text {
  position: absolute;
  left: 0;
  top: 34%;
  width: 100%;
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 18px;
  color: #2c1a0e;
  text-align: center;
}

.yiwei-oceanwp .month-modal-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 15, 5, 0.55);
  z-index: 1000;
  padding: 24px;
}

.yiwei-oceanwp .month-modal-overlay:target {
  display: block;
}

.yiwei-oceanwp .month-modal-box {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  overflow: auto;
  margin: 4vh auto;
  box-shadow: 0 16px 60px rgba(30, 15, 5, 0.28);
}

.yiwei-oceanwp .month-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #c44a1a;
  background: #ffffff;
  color: #c44a1a;
  font-size: 18px;
  text-align: center;
  line-height: 32px;
  text-decoration: none;
  z-index: 10;
}

.yiwei-oceanwp .month-modal-header {
  padding: 36px 48px 0;
  text-align: center;
}

.yiwei-oceanwp .month-modal-title {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 30px;
  color: #8b1a1a;
  letter-spacing: 0.12em;
  display: inline-block;
}

.yiwei-oceanwp .month-modal-deco {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 0;
  margin: 8px auto 28px;
}

.yiwei-oceanwp .month-modal-grid {
  padding: 0 40px 40px;
  text-align: center;
}

.yiwei-oceanwp .month-card {
  position: relative;
  display: inline-block;
  width: 30%;
  min-width: 240px;
  margin: 8px;
  vertical-align: top;
  text-align: left;
}

.yiwei-oceanwp .month-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.yiwei-oceanwp .month-card__inner {
  position: relative;
  z-index: 1;
  padding: 18px 20px 20px;
  min-height: 100px;
}

.yiwei-oceanwp .month-card__date {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 15px;
  color: #860308;
  margin-bottom: 8px;
}

.yiwei-oceanwp .month-card__text {
  font-size: 13.5px;
  color: #444444;
  line-height: 1.85;
}

.yiwei-oceanwp .site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid #e0d8cf;
  color: #6b5e52;
  font-size: 13px;
}

@media (max-width: 600px) {
  .yiwei-oceanwp .timeline-group,
  .yiwei-oceanwp .timeline-group__header,
  .yiwei-oceanwp .timeline-item {
    display: block;
  }

  .yiwei-oceanwp .timeline-group__header-date,
  .yiwei-oceanwp .timeline-group__header-event,
  .yiwei-oceanwp .timeline-date,
  .yiwei-oceanwp .timeline-content {
    display: block;
    width: 100%;
    border-right: none;
  }

  .yiwei-oceanwp .tl-visual {
    flex-direction: column;
    align-items: center;
  }

  .yiwei-oceanwp .tl-col--start,
  .yiwei-oceanwp .tl-col--mid,
  .yiwei-oceanwp .tl-col--end {
    width: 100%;
    flex: none;
  }

  .yiwei-oceanwp .month-card,
  .yiwei-oceanwp .image-gallery figure {
    display: block;
    width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .yiwei-oceanwp .month-modal-grid {
    padding: 0 16px 20px;
  }

  .yiwei-oceanwp .month-modal-header {
    padding: 20px 16px 0;
  }
}

/* A/C 方案：Elementor Popup 觸發文字樣式 */
.yiwei-oceanwp .yiwei-popup-trigger {
  color: #8b2e0e;
  text-decoration: underline;
  cursor: pointer;
}

.yiwei-oceanwp .yiwei-popup-trigger:hover {
  color: #c44a1a;
}

/* C 方案：影片已改用 Elementor Video 元件，HTML 內僅保留錨點 */
.yiwei-oceanwp .yiwei-video-placeholder {
  height: 1px;
  overflow: hidden;
}

/* ======== hover popup ======== */

/* 觸發容器：inline，讓文字不換行 */
.yiwei-oceanwp .yw-pop {
  position: relative;
  display: inline;
}

/* 觸發文字：底線紅字 */
.yiwei-oceanwp .yw-pop-trigger {
  color: #8b2e0e;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* popup 本體：預設隱藏 */
.yiwei-oceanwp .yw-pop-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 680px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(30,15,5,0.18);
  padding: 24px 28px 28px;
  z-index: 9999;
  text-align: left;
  border-top: 3px solid #8b2e0e;
}
/* 右側裝飾圖 */
.yiwei-oceanwp .yw-pop-splash {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: 0 10px 10px 0;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

/* 白話譯文標題上方圖片 */
.yiwei-oceanwp .yw-pop-pic8 {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .yiwei-oceanwp .yw-pop-pic8 {
    margin-bottom: 8px;
  }
}

/* hover 時顯示 */
.yiwei-oceanwp .yw-pop:hover .yw-pop-box {
  display: block;
}

/* popup 標題 */
.yiwei-oceanwp .yw-pop-title {
  display: block;
  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: bold;
  color: #8b1a1a;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* 年份小字 */
.yiwei-oceanwp .yw-pop-years {
  font-size: 13px;
  font-weight: normal;
  color: #555555;
  letter-spacing: 0.03em;
  margin-left: 6px;
}

/* 裝飾線圖 */
.yiwei-oceanwp .yw-pop-deco {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 0;
  margin: 4px 0 14px;
}

/* 內文 */
.yiwei-oceanwp .yw-pop-text {
  display: block;
  font-size: 13.5px;
  color: #444444;
  line-height: 1.85;
  margin-bottom: 8px;
}
.yiwei-oceanwp .yw-pop-text:last-child { margin-bottom: 0; }

/* 條款小標題 */
.yiwei-oceanwp .yw-pop-intro {
  display: block;
  font-size: 13.5px;
  color: #555555;
  line-height: 1.85;
  margin-bottom: 10px;
}
.yiwei-oceanwp .yw-pop-subtitle {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #8b1a1a;
  margin-top: 12px;
  margin-bottom: 4px;
}

/* ── 月份按鈕 hover popup ── */
.yiwei-oceanwp .yw-pop--month {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 8px auto;
  position: relative;
}

.yiwei-oceanwp .yw-pop-trigger--month {
  display: block;
  position: relative;
  width: 100%;
  cursor: pointer;
  text-decoration: none;
}

.yiwei-oceanwp .yw-pop-box--month {
  display: none;
  position: fixed;
  width: min(960px, 94vw);
  max-height: 82vh;
  overflow-y: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 24px 28px 28px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(30,15,5,0.18);
  z-index: 9999;
  border-top: 3px solid #8b2e0e;
}

.yiwei-oceanwp .yw-pop--month:hover .yw-pop-box--month {
  display: block;
}

/* 月份卡片 grid */
.yiwei-oceanwp .yw-pop-month-grid {
  display: block;
  text-align: center;
  margin-top: 8px;
}

/* 繼承原有 month-card 樣式，不需額外覆寫 */

@media (max-width: 600px) {
  .yiwei-oceanwp .yw-pop-box {
    width: 92vw;
    left: 50%;
    transform: translateX(-50%);
  }
  .yiwei-oceanwp .yw-pop-box--month {
    width: 92vw;
    transform: translateX(-50%);
  }
  .yiwei-oceanwp .yw-pop--month {
    width: 100%;
  }
}

/* tick 圖示 */
.yiwei-oceanwp .yw-pop-tick {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 0;
}

/* subtitle 改成 flex 並排 */
.yiwei-oceanwp .yw-pop-subtitle {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  color: #8b1a1a;
  margin-top: 16px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

/* subtitle 後的內文縮排 */
.yiwei-oceanwp .yw-pop-subtitle + .yw-pop-text {
  padding-left: 30px;
}

/* 手機版：popup 改用固定定位，不超出螢幕 */
@media (max-width: 768px) {
  .yiwei-oceanwp .yw-pop {
    display: inline;
  }

  .yiwei-oceanwp .yw-pop-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
  }

  /* 手機版顯示時加半透明遮罩 */
  .yiwei-oceanwp .yw-pop:hover .yw-pop-box {
    display: block;
  }

  .yiwei-oceanwp .yw-pop-box--month {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92vw;
    max-width: 92vw;
    max-height: 80vh;
  }
  .yiwei-oceanwp .yw-pop--month:hover .yw-pop-box--month {
    display: block;
  }
}

/* 標題組 RWD */
@media (max-width: 900px) {
  .yiwei-oceanwp .section__header--loose {
    padding-left: 120px;
  }
}
@media (max-width: 600px) {
  .yiwei-oceanwp .section__header--loose {
    padding-left: 0;
  }
}

/* 條款一二三縮排 */
.yiwei-oceanwp .yw-pop-text--indent {
  display: block;
  padding-left: 2em;
}

/* 強制 block 顯示，解決 WordPress 把最後 span 當 inline 的問題 */
.yiwei-oceanwp .yw-pop-text--block {
  display: block !important;
  clear: both;
}

/* battle-card splash 圖當底圖 */
.yiwei-oceanwp .battle-card {
  position: relative;
  display: block;
}
.yiwei-oceanwp .battle-card__splash {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  pointer-events: none;
  opacity: 1;
}
.yiwei-oceanwp .battle-card__name,
.yiwei-oceanwp .battle-card__date {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 1;
  margin: 0;
  line-height: 1.3;
}
/* name(18px*1.3=~23px) + date(15px*1.3=~20px) 合計~43px，整體往上偏移一半 */
.yiwei-oceanwp .battle-card__name {
  top: calc(50% - 34px);
  font-size: 18px;
}
.yiwei-oceanwp .battle-card__date {
  top: calc(50% - 10px);
  font-size: 15px;
}

/* RWD：視窗縮小時逐漸換行，最終單排 */
@media (max-width: 700px) {
  .yiwei-oceanwp .battle-card {
    flex: 1 1 40%;
    max-width: 48%;
  }
}
@media (max-width: 400px) {
  .yiwei-oceanwp .battle-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* ── month-card grid 三欄 RWD ── */
.yiwei-oceanwp .yw-pop-month-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  text-align: left;
}

.yiwei-oceanwp .month-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  margin: 0;
  vertical-align: unset;
}

.yiwei-oceanwp .month-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: fill;
}

.yiwei-oceanwp .month-card__inner {
  position: relative;
  z-index: 1;
  padding: 18px 20px 20px;
  flex: 1;
}

/* 兩欄：視窗 &lt; 700px */
@media (max-width: 700px) {
  .yiwei-oceanwp .yw-pop-month-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 一欄：視窗 &lt; 420px */
@media (max-width: 420px) {
  .yiwei-oceanwp .yw-pop-month-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 月份 popup 內的標題與裝飾線置中（不影響其他 yw-pop-title/deco） ── */
.yiwei-oceanwp .yw-pop-box--month .yw-pop-title {
  text-align: center;
}

.yiwei-oceanwp .yw-pop-box--month .yw-pop-deco {
  margin-left: auto;
  margin-right: auto;
}

/* ── tl-visual 三欄靠攏中間 ── */
.yiwei-oceanwp .tl-visual {
  justify-content: center;
  gap: 0;
}

.yiwei-oceanwp .tl-col--start,
.yiwei-oceanwp .tl-col--end {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 220px;
  align-items: center;
  text-align: center;
}

.yiwei-oceanwp .tl-col--mid {
  flex: 0 0 auto;
  width: clamp(180px, 26%, 280px);
}

/* ── chapter-nav 置中、chapter-btn/item 粗體 ── */
.yiwei-oceanwp .chapter-nav {
  justify-content: center;
}

.yiwei-oceanwp .chapter-btn {
  font-weight: bold;
}

.yiwei-oceanwp .chapter-dropdown__item {
  font-weight: bold;
}

/* ── battle-date 靠近標題 ── */
.yiwei-oceanwp .battle-date {
  margin-left: -1em;
}

/* ── battle 頁面日期靠近標題（不影響其他頁面） ── */
.yiwei-oceanwp .battle-title-wrap .battle-date {
  display: block !important;
  margin-bottom: 0 !important;
  line-height: 1.2;
}

.yiwei-oceanwp .battle-title-wrap .section__title {
  margin-top: 0 !important;
}

/* ── battle-date 斜體效果（左下往右上） ── */
.yiwei-oceanwp .battle-title-wrap .battle-date {
  transform: rotate(-8deg);
  transform-origin: left bottom;
  display: inline-block !important;
}

/* ── 移除 battle-card 點擊框線（蓋過主題全域樣式）── */
.yiwei-oceanwp .battle-card,
.yiwei-oceanwp .battle-card:hover,
.yiwei-oceanwp .battle-card:focus,
.yiwei-oceanwp .battle-card:active,
.yiwei-oceanwp .battle-card:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ── 移除手機點觸反白效果 ── */
.yiwei-oceanwp .yw-pop-trigger {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

/* ── 移除 battle-card 手機點觸反白效果 ── */
.yiwei-oceanwp .battle-card {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}

/* ── 移除 chapter-btn / dropdown 手機點觸反白效果 ── */
.yiwei-oceanwp .chapter-btn,
.yiwei-oceanwp .chapter-dropdown__item {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
}/* End custom CSS */