@charset "UTF-8";
/***************************************
    Application Post - Stylesheet
    copyright @ 2025 by MaxWeb.com.tw
***************************************/

:root {
  --brand-green: #8fc31f;
  --brand-green-rgb: 143, 195, 31;
  --brand-dark-gray: #7d7d7d;
  --brand-black: #000000;
  --brand-light-gray-1: #d9d9d9;
  --brand-light-gray-2: #f4f7f9;
  --brand-white: #FFFFFF;
  --brand-yellow: #E8C236;
  --text-primary: #333333;
  --text-secondary: #666666;
  --bg-subtle: #f8f9fa;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*-------------------------------------------------
 基本容器
--------------------------------------------------*/
.canvas-post-application {
  min-height: 300px;
}

.post-application-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/*-------------------------------------------------
 文章標題區
--------------------------------------------------*/
.application-post-header {
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 3px solid var(--brand-green);
  position: relative;
}

.application-post-header::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background-color: var(--brand-dark-gray);
}

.application-post-header h1 {
  font-size: var(--fs-xl);
  color: #333;
  margin-bottom: 15px;
  font-weight: var(--fw-bold);
}



/*-------------------------------------------------
 文章內容區
--------------------------------------------------*/
.application-post-content {
}

.application-post-content img {
  max-width: 100%;
  height: auto;
}

.application-post-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 30px 0 !important;
  border-collapse: collapse !important;
  background-color: #ffffff !important;
  border: 0 solid transparent !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  font-size: 15px !important;
}

.application-post-content table th,
.application-post-content table td {
  border-top: 0 solid transparent !important;
  border-left: 0 solid transparent !important;
  border-right: 0 solid transparent !important;
}

.application-post-content table thead {
  background-color: #8fc31f !important;
  color: #ffffff !important;
}

.application-post-content table thead th,
.application-post-content table th {
  background-color: #8fc31f !important;
  color: #ffffff !important;
  padding: 15px 20px !important;
  font-weight: 600 !important;
  text-align: left !important;
  border-bottom: 0 solid transparent !important;
  letter-spacing: 0.5px !important;
}

.application-post-content table tbody tr {
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background-color 0.2s ease !important;
}

.application-post-content table tbody tr:nth-of-type(even) {
  background-color: #fafbfc !important;
}

.application-post-content table tbody tr:hover {
  background-color: #f5f9f0 !important;
}

.application-post-content table tbody tr:last-of-type {
  border-bottom: 2px solid #8fc31f !important;
}

.application-post-content table tbody td {
  padding: 15px 20px !important;
  color: #555555 !important;
  line-height: 1.6 !important;
  border-bottom: 0 solid transparent !important;
  background-color: transparent !important;
}

/*-------------------------------------------------
 產業資源區
--------------------------------------------------*/
.resource-section {
  margin: 60px auto;
}

.resource-section h3 {
  font-size: var(--fs-xl);
  color: #333;
  margin-bottom: 30px;
  font-weight: var(--fw-bold);
  position: relative;
  padding-left: 15px;
}

.resource-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 24px;
  width: 4px;
  background-color: var(--brand-green);
}

.resource-list {
  display: block;
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  padding: 25px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 15px;
  background: #fff;
}

.resource-item:nth-child(even) {
  background: #f8fafc;
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item:hover {
  background: #f9fdf5; /* Light Green tint */
  box-shadow: 0 4px 12px rgba(143, 195, 31, 0.15);
  z-index: 10;
  position: relative;
}

.resource-item-content {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: minmax(min-content, auto) 1fr;
  column-gap: 15px;
  align-items: baseline;
}

.resource-info-top {
  display: contents;
}

.resource-type {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-black);
  background-color: var(--brand-light-gray-2);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.resource-title {
  color: var(--brand-black);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.resource-summary {
  grid-column: 2;
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.6;
  margin-top: 4px;
}

.resource-action {
  flex-shrink: 0;
  align-self: center;
}

.resource-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: transparent;
  color: var(--brand-dark-gray);
  border: 2px solid var(--brand-dark-gray);
  border-radius: 50px;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  transition: var(--transition-smooth);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.resource-btn:hover {
  background-color: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
  box-shadow: 0 4px 15px rgba(var(--brand-green-rgb), 0.3);
}

/* .resource-btn::before {
  content: "\f019"; 
  font-family: FontAwesome;
  margin-right: 8px;
  font-weight: normal;
} */

/*-------------------------------------------------
 推薦產品區
--------------------------------------------------*/
.recommended-products-section {
  margin: 60px auto;
}

.recommended-products-section h3 {
  font-size: var(--fs-xl);
  color: #333;
  margin-bottom: 30px;
  font-weight: var(--fw-bold);
  position: relative;
  padding-left: 15px;
}

.recommended-products-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: 24px;
  width: 4px;
  background-color: var(--brand-green);
}

.recommended-products-section .recommend_merchandise_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  align-items: stretch;
  gap: 24px;
  width: 100%;
  margin-top: 24px;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #f0f0f0;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item:hover {
  transform: translateY(-2px);
}

.recommended-products-section .recommend_merchandise_list .merchandise_item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item .item_image {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background-color: transparent;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item .item_text h4 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item .item_text p {
  font-size: var(--fs-base);
  color: #666;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item .item_text .pd_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.recommended-products-section .recommend_merchandise_list .merchandise_item .item_text .pd_tag {
  display: inline-block;
  background-color: #f8f9fa;
  color: #6c757d;
  font-size: var(--fs-xs);
  padding: 4px 8px;
  border-radius: 14px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

/*-------------------------------------------------
 響應式設計
--------------------------------------------------*/
@media (max-width: 768px) {
  .application-post-header h1 {
    font-size: var(--fs-lg);
  }

  .application-post-content {
    font-size: var(--fs-base);
  }

  .booking-card {
    padding: 20px 25px;
  }

  .application-post-actions {
    flex-direction: column;
  }

  .buy-button,
  .application-post-button {
    width: 100%;
    justify-content: center;
  }

  .recommended-products-section .recommend_merchandise_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .recommended-products-section .recommend_merchandise_list .merchandise_item .item_image {
    height: 160px;
    margin-bottom: 8px;
  }

  .recommended-products-section .recommend_merchandise_list .merchandise_item img {
    max-height: 160px;
  }

  .recommended-products-section .recommend_merchandise_list .merchandise_item .item_text h4 {
    font-size: var(--fs-base);
    margin: 0 0 6px 0;
  }

  .recommended-products-section .recommend_merchandise_list .merchandise_item .item_text p {
    font-size: var(--fs-sm);
    margin: 0 0 4px 0;
  }

  .resource-list {
    grid-template-columns: 1fr;
  }

  /* Resource section mobile */
  .resource-section {
    margin: 40px auto;
  }

  .resource-item {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .resource-item-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .resource-info-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .resource-type {
    align-self: flex-start;
  }

  .resource-summary {
    grid-column: unset;
  }

  .resource-action {
    align-self: flex-start;
  }

  .resource-btn {
    padding: 8px 20px;
  }
}

@media (max-width: 480px) {
  .recommended-products-section .recommend_merchandise_list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .application-post-header h1 {
    font-size: var(--fs-lg);
  }



  .booking-card .booking-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .recommended-products-section h3,
  .resource-section h3,
  .eol-section h3 {
    font-size: var(--fs-lg);
  }
}


/*-------------------------------------------------
 EOL Notices 區塊 (Brand Colors)
--------------------------------------------------*/
.eol-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid #eaeaea;
}

.eol-section h3 {
  font-size: var(--fs-xl);
  color: #444;
  margin-bottom: 40px;
  font-weight: var(--fw-bold);
  position: relative;
  display: inline-block;
}

.eol-section h3::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #8FC31F 0%, transparent 100%);
  margin-top: 8px;
  border-radius: 2px;
}

.eol-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  background: #fff;
}

.eol-table {
  width: 100% !important;
  border-collapse: collapse !important;
  border-spacing: 0;
  min-width: 600px;
  background-color: #ffffff !important;
  border: 0 solid transparent !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  font-size: 15px !important;
}

.eol-table th,
.eol-table td {
  border-top: 0 solid transparent !important;
  border-left: 0 solid transparent !important;
  border-right: 0 solid transparent !important;
}

.eol-table thead th {
  background: #8fc31f !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  text-align: left !important;
  padding: 15px 20px !important;
  font-size: 15px !important;
  letter-spacing: 0.5px !important;
  border-bottom: 0 solid transparent !important;
}

.eol-table tbody tr {
  border-bottom: 1px solid #f0f0f0 !important;
  background: #fff !important;
  transition: background-color 0.2s ease !important;
}

.eol-table tbody tr:nth-child(even) {
  background: #fafbfc !important;
}

.eol-table tbody tr:hover {
  background: #f5f9f0 !important;
}

.eol-table tbody tr:last-of-type {
  border-bottom: 2px solid #8fc31f !important;
}

.eol-table tbody td {
  padding: 15px 20px !important;
  font-size: 15px !important;
  color: #555555 !important;
  line-height: 1.6 !important;
  border-bottom: 0 solid transparent !important;
  background-color: transparent !important;
}

.eol-product-name {
  font-weight: var(--fw-bold);
  color: #333;
  font-size: var(--fs-base);
}

.eol-replacement {
  color: #666;
  font-weight: var(--fw-medium);
}

.eol-date .date-badge {
  display: inline-block;
  padding: 6px 12px;
  background: #f2f2f2; /* Light Gray */
  color: #666;
  border-radius: 20px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  font-family: inherit;
}

.eol-table tbody tr:hover .date-badge {
  background: #e9f5d3;
  color: #6e9a14;
}

.eol-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: transparent;
  color: #7D7D7D;
  border: 1px solid #7D7D7D;
  border-radius: 6px;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  transition: all 0.2s;
  white-space: nowrap;
}

.eol-doc-btn:hover {
  background-color: #8FC31F; /* Brand Lime Green */
  color: #fff;
  border-color: #8FC31F;
  box-shadow: 0 4px 12px rgba(143, 195, 31, 0.3);
}

/*-------------------------------------------------
 Support Services 區塊 (Brand Colors)
--------------------------------------------------*/
.support-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid #eaeaea;
}

.support-section h3 {
  font-size: var(--fs-xl);
  color: #444;
  margin-bottom: 40px;
  font-weight: var(--fw-bold);
  position: relative;
  display: inline-block;
}

.support-section h3::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #8FC31F 0%, transparent 100%);
  margin-top: 8px;
  border-radius: 2px;
}

.support-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.support-item {
  position: relative;
  background: #8FC31F;
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: 0 4px 16px rgba(143, 195, 31, 0.3);
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
  cursor: pointer;
}

.support-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(143, 195, 31, 0.45);
  background: #7db01a;
}

.support-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-xl);
}

.support-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

/* 響應式微調 */
@media (max-width: 768px) {
  .eol-section, .support-section {
    margin-top: 40px;
    padding-top: 30px;
  }
  
  .eol-table thead th {
    padding: 12px 16px;
  }
  
  .eol-table tbody td {
    padding: 16px;
  }
  
  .support-list {
    grid-template-columns: 1fr;
  }
}

/*-------------------------------------------------
 About Us 區塊 (Vision & History)
--------------------------------------------------*/
.about-section {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid #eaeaea;
}

.about-section-title {
  font-size: var(--fs-xl);
  color: #444;
  margin-bottom: 40px;
  font-weight: var(--fw-bold);
  position: relative;
  display: inline-block;
}

.about-section-title::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #8FC31F 0%, transparent 100%);
  margin-top: 8px;
  border-radius: 2px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-item {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.about-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: #8FC31F;
}

.about-image {
  flex-shrink: 0;
  width: 240px;
  height: auto;
  min-height: 160px;
  border-radius: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 15px;
}

.about-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* History 區塊統一使用 doc-color.svg icon */
.about-history .about-item .about-icon {
  background-image: url('../../../../cufiles/images/about/history-icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50px 50px;
  align-self: center; /* 垂直置中 */
}

.about-content {
  flex: 1;
}

.about-title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #333;
  margin: 0 0 12px 0;
}

.about-description {
  font-size: var(--fs-base);
  color: #666;
  line-height: 1.7;
}

.about-description p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .about-item {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  
  .about-image {
    width: 100%;
    height: auto;
    max-height: 250px;
  }
  
  .about-icon {
    width: 60px;
    height: 60px;
    padding: 10px;
  }
  
  .about-section-title {
    font-size: var(--fs-xl);
    margin-bottom: 25px;
  }
}

/*-------------------------------------------------
 Social Responsibility (CSR) 區塊
 ★ 完全使用與 About Us 相同的 about-section 結構
 ★ 第一區（遷移產生的 HTML）使用 industry-intro + industry-cards
 ★ 第二區（動態生成）使用 about-section about-csr-benefits
--------------------------------------------------*/

/* CSR Benefits 區塊的副標題 */
.about-section-subtitle {
  font-size: var(--fs-md);
  color: #666;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 900px;
}

/* 第一區 Intro Section 額外樣式 (SHAPING HUMAN CONNECTIONS) */
.application-post-content .industry-intro .intro-lead {
  font-size: var(--fs-base);
  color: #666;
  line-height: 1.8;
  margin-top: 15px;
  max-width: 800px;
}
