﻿/* section-1 */
.wikilist01-section1 {
  margin-bottom: 5px!important; /* 原本如果是40px，縮小到20 */
  padding: 1px 0!important;  
}
.wikilist01-section1 .wikilist01-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 滾動區 */
.wikilist01-section1 .wikilist01-container .wikilist01-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  cursor: grab;
}
.wikilist01-section1 .wikilist01-container .wikilist01-scroll:active {
  cursor: grabbing;
}
.wikilist01-section1 .wikilist01-container .wikilist01-scroll::-webkit-scrollbar {
  height: 6px;
}
.wikilist01-section1 .wikilist01-container .wikilist01-scroll::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 4px;
}
.wikilist01-section1 .wikilist01-container .wikilist01-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}
/* 單個分類項 */
.wikilist01-section1 .wikilist01-container .wikilist01-scroll .wikilist01-item {
  flex: 0 0 auto;
  width: 180px;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  color: #1565c0;
  font-weight: bold;
  padding: 18px 12px;
  transition: all 0.3s;
font-family: 'CenturyGothic-Bold', sans-serif;
}
.wikilist01-section1 .wikilist01-container .wikilist01-scroll .wikilist01-item:hover {
  background: #f9f9f9;
  border-color: #999;
}
.wikilist01-icon {
  color: #1565c0;
  font-size: 24px;
  margin-bottom: 6px;
}
.wikilist01-item.active {
  background: #1565c0;
  color: #fff;
  border-color: #1565c0;
}
.wikilist01-item.active .wikilist01-icon {
  color: #fff!important;
}

/*********************/


.ys-service-section {
	width: 1320px; /* 固定宽度 */
	display: flex;
	flex-wrap: wrap;
	margin: 20px auto;
	position: relative;

  padding: 1px 20px 20px 20px;
}

.ys-container {
  max-width: 100%;
  margin: 0 auto;
}

.ys-section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--heading-color);
}

.ys-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.ys-service-card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border: 1px var(--theme-color-3) solid;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  position: relative;
  z-index: 0;
}

.ys-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.ys-service-card a {
  position: relative;
  z-index: 2;
}
.ys-icon-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.ys-icon {
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--theme-color-1);
  border-radius: 50%;
  color: var(--font-white);
  flex-shrink: 0;
}

.ys-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
  margin: 0;
}

.ys-card-desc {
  font-size: 0.95rem;
  color: var(--font-color);
  margin-bottom: 15px;
  line-height: 1.6;
}

/* ✅ 新样式：子菜单 */
.ys-sub-menu {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* ✅ 桌機兩欄 */
  gap: 8px 12px;
  width: 100%;
  box-sizing: border-box;
}

.ys-sub-menu li {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
white-space: nowrap;       /* ✅ 單行 */
  overflow: hidden;          /* ✅ 隱藏超出 */
  text-overflow: ellipsis;   /* ✅ 省略號 */
 max-width: 100%;       
}
.ys-sub-menu li a {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ys-sub-menu li::before {
  content: "🔹";
  margin-right: 6px;
  font-size: 0.85rem;
}

.ys-sub-menu a {
  text-decoration: none;
  color: var(--theme-color-0);
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.ys-sub-menu a:hover {
  color: var(--theme-color-00);
}
/* tusb==1 時的變體 */
.ys-sub-menu li.alt::before {
  content: "⚪";
  color: var(--theme-color-00);
}

.ys-sub-menu li.alt a {
  color: var(--theme-color-00);
}
.ys-sub-menu li.alt a:hover {
  color: var(--theme-color-0); /* 或設定其他 hover 色 */
}
/* ✅ 新样式：多按钮区块 */
.ys-btn-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ys-btn-link {
  padding: 3px 10px;
  font-size: 0.9rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}


/* 三种按钮样式 */

.btn-basic {
    background-color: #b7a1c5;  /* 稍深紫色 */
        color: #fff;  /* 白色字体 */

}

.btn-basic:hover {
     background-color: var(--theme-color-3);  /* 柔和紫色 */
     color:#000;
    transform: translateY(-2px);
    border:1px #121212 solid;
}

/* 强调色按钮样式 */
.btn-accent {
    background-color: var(--theme-color-6);  /* 暖橙色 */
     color:#fff;
}

.btn-accent:hover {
    background-color: #ff8c00;  /* 明亮橙色 */
    transform: translateY(-2px);
	 color:#fff;
}

/* 边框按钮样式 */
.btn-outline {
    border: 2px solid var(--theme-color-3);  /* 柔和紫色边框 */
    background-color: var(--theme-color-1);
	 color:#fff;
}

.btn-outline:hover {
    background-color: var(--theme-color-00);  /* 紫色背景 */
	 color:#fff;
    transform: translateY(-2px);
}

/* 其他颜色选择，确保搭配的和谐性 */

.btn-accent-green {
    background-color: var(--theme-color-2);  /* 明亮绿色 */
    color: #fff;  /* 白色字体 */
}

.btn-accent-green:hover {
    background-color: #45a849;  /* 更深的绿色 */
    transform: translateY(-2px);
}

.btn-outline-pink {
    border: 2px solid var(--theme-color-5);  /* 清新薄荷绿边框 */
    background-color: transparent;
    color: var(--theme-color-5);  /* 薄荷绿字体 */
}

.btn-outline-pink:hover {
    background-color: var(--theme-color-5);  /* 薄荷绿背景 */
    color: #fff;  /* 白色字体 */
    transform: translateY(-2px);
}

.btn-basic-red {
    background-color: var(--theme-color-6);  /* 温暖红色 */
    color: #fff;  /* 白色字体 */
}

.btn-basic-red:hover {
    background-color: #ff3333;  /* 更亮的红色 */
    transform: translateY(-2px);
}



@media (max-width: 992px) {
  .ys-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .ys-service-grid {
    grid-template-columns: 1fr;
	gap: 1rem; /* 适当间距 */
  width: 100%;
  /* 防止子项溢出 */
  min-width: 0; /* 关键：允许 grid 收缩 */
  }
  .ys-section-title {
    font-size: 1.6rem;
  }
  .ys-service-card {
	width: 100%;
    padding: 16px;
	 word-break: break-word; /* 长文本换行 */
  }
  .ys-btn-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

.ys-sub-menu {
    grid-template-columns: 1fr; /* 一欄 */
    overflow-x: hidden;
  }

  .ys-sub-menu li {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .ys-sub-menu a {
    max-width: 100%;
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/***********************/

.spring-drug-section {
  background-color: var(--bg-white);
  padding: 10px 0px 10px 0px;
  color: var(--font-color);
  border-top: 1px solid #eee;
}

.spring-drug-section .container {
  width: 100%;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--heading-color);
  margin-bottom: 10px;
  text-align: center;
}

.section-content h3 {
  font-size: 1rem;
  color: var(--font-color-3);
  margin-top: 4px;
  margin-bottom: 8px;
  font-weight:bold;
}

.section-content p {
  line-height: 1.4;
  font-size: 1rem;
  margin-bottom: 1px;
}

.section-content strong {
  color: var(--theme-color-0);
  font-weight: bold;
}

.cta-box {
  background-color: var(--theme-color-3);
  padding: 6px 20px;
  border-left: 4px solid var(--theme-color-1);
  margin-top: 10px;
  text-align: center;
  border-radius: 8px;
}

.cta-button {
  display: inline-block;
  padding: 1px 10px;
  background-color: var(--theme-color-1);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: white;
}
.buy-button-group {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.buy-buttonv {
  display: inline-block;
  padding: 8px 4px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  flex: 1 1 auto;
}

.buy-buttonv.buy-tw {
  background-color: var(--theme-color-1); /* 台灣: 主題橘色 */
  color: #fff;
}

.buy-buttonv.buy-hk {
  background-color: #0070c0; /* 香港: 藍色 */
  color: #fff;
}
.buy-buttonv.buy-tw:hover{
  color: #0070c0;
}

.buy-buttonv.buy-hk:hover {
  color:var(--theme-color-1);
}
/***********************/

/* 样式建议：可加入全站 CSS */
.intimacy-formula-section {
	width: 1320px; /* 固定宽度 */
	display: flex;
	flex-wrap: wrap;
	margin: 20px auto;
	position: relative;
  padding: 20px 20px!important;
  background-color: var(--bg-white);
  color: var(--font-color);
  border-left: 4px solid var(--theme-color-1);
}

.intimacy-formula-section .container {
  max-width:100%;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--theme-color-1);
  margin-bottom: 0.2em;
  text-align: left;
}
@media (max-width: 768px) {


.section-title {
  font-size: 1.4rem;
}

.intimacy-formula-section{
    width: 100%;
   padding: 20px ;
	margin: 20px auto;
}
  .ys-service-section {
    width: 100%;
	margin: 20px auto;
	padding: 1px 20px 20px 20px;  
	}

}


.section-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.5em  auto;
  color: var(--heading-color);
}

.formula-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.2em;
}
.formula-content p:nth-of-type(1) {
  /* 第一个 p 的样式 */
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2em;
}
.formula-content p:nth-of-type(2) {
  /* 第一个 p 的样式 */
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.2em;
}

.formula-content .highlight {
  color: var(--theme-color-1);
  font-weight: 600;
}

/*************/
/* 雙欄容器排版 */
/* 方式 2：左30% + 右70%，視情況可調 */
.ys-two-column-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 24px;
}

/* 左右欄明確命名（可選） */
.ys-service-left,
.ys-service-right {
  display: flex;
  flex-direction: column;
}

/* 右側內容區塊樣式 */
.ys-detail-box {
  padding: 20px auto;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.ys-detail-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.ys-detail-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}
@media screen and (max-width: 991.98px) {
  .ys-two-column-layout {
    display: flex !important;         /* ✅ 改為 flex */
    flex-direction: column !important;/* ✅ 垂直堆疊 */
    gap: 16px !important;
  }

  .ys-service-left,
  .ys-service-right {
    width: 100% !important;           /* ✅ 強制寬度滿版 */
  }
}

.ys-two-column-layout {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 24px;
}
.ys-service-category {
  margin-bottom: 24px;
}

.ys-service-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.ys-service-list li {
  margin-bottom: 6px;
}

.ys-service-list li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.ys-service-list li a:hover {
  color: var(--theme-color-0, #d62828);
}
.ys-service-scroll-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding-left: 0;
  margin: 0;
  scrollbar-width: thin;
}

.ys-service-scroll-list li {
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.ys-service-scroll-list li a {
  text-decoration: none;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.ys-service-scroll-list li a:hover {
  background-color: #f0f0f0;
  color: var(--theme-color-0, #d62828);
}

/* 可選：自定義 scrollbar 風格 */
.ys-service-scroll-list::-webkit-scrollbar {
  height: 10px;
}
.ys-service-scroll-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
