/* 根色彩定義 */
:root {
  --gold: #e2c1a6;
  --coffee: #dbccb5;
  --brown: #b17a78;
  --black: #000;
  --white: #fff;
  --gray: #aaa;
  --dark-gray: #666666;
}

/* Reset 基礎設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基礎樣式 */
body {
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  background-color: var(--black);
  background-image: url(../images/bg.jpg);
  background-attachment: fixed; /* 固定背景 */
  background-position: center; /* 背景置中 */
  background-size: 100%; /* 背景覆蓋整個視窗 */
}

.kv-container {
  width: 100%;
}

/* 容器設定 */
.wrap-container {
  font-family: "Noto Serif TC", "思源宋體", "Source Han Serif TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: var(--white);
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 150px;
  padding: 20px;
  line-height: 1.6;
}

/* 頁首設定 */
.header {
  text-align: center;
  margin-bottom: 100px;
  padding: 0 20px;
}

.header h1 {
  font-size: clamp(32px, 10.5vw, 42px);
  font-weight: 300;
  color: transparent;
  margin-bottom: 35px;
  position: relative;
  padding-bottom: 10px;
  background: linear-gradient(to bottom, #fff 0%, var(--gold) 30%, #d4a776 55%, #f0d6b9 75%, #fff 100%);
  background-size: 100% auto;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0px 2px 1px rgba(70, 50, 30, 0.1), 0px -1px 1px rgba(255, 255, 255, 0.4);
  letter-spacing: 0.03rem;
}

.header h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 1px;
  background-color: var(--gold);
  margin-top: 25px;
}

.header p {
  font-size: clamp(17px, 3vw, 19px);
  line-height: 1.8;
  letter-spacing: 1.5px;
  max-width: 800px;
  margin: 0 auto;
}

/* 各類介紹區塊間距 */
.whisky-info {
  margin-bottom: clamp(50px, 5vw, 100px);
}

/* CSS 动画 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 產品卡片設定 */
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  align-items: center;
  padding: 20px;
}

.product-image-container {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1/1; /* 保持正方形比例 */
  margin: 0 auto 30px;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 確保圖片填滿容器且不變形 */
}

/* 調整產品卡片布局 */
.product-info {
  padding-right: 20px;
}

/* 分隔線樣式 */
.divider-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 75px;
  text-align: center;
  position: relative;
}

.product-title {
  font-size: clamp(20px, 9vw, 26px);
  font-weight: 300;
  line-height: 1.2;
  color: transparent;
  color: var(--gold);
  background-size: 100% auto;
  background-clip: text;
  -webkit-background-clip: text;
}

.product-title span {
  display: inline-block;
  font-size: clamp(18px, 6vw, 34px);
  /*padding: 0 clamp(4px, 1vw, 8px);*/
}

/* 英文字體設定 */
.product-title span,
.english {
  font-family: "Microsoft Himalaya", serif;
}

.product-volume {
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: clamp(13px, 4.8vw, 16px);
  color: var(--gray);
  margin: 10px 0 20px;
}

.product-description {
  font-size: clamp(14px, 5vw, 16px);
  letter-spacing: 0.01rem;
  text-align: justify;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.product-specs {
  font-size: clamp(13px, 4vw, 16px);
  letter-spacing: 0.05rem;
  color: var(--white);
}

/* 按鈕樣式 */
.cta-btn {
  display: inline-block;
  padding: clamp(8px, 3vw, 10px) clamp(15px, 6vw, 20px);
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: clamp(13px, 4.5vw, 15px);
  transition: all 0.3s ease;
  position: relative;
  margin: 20px 0;
  padding-left: clamp(20px, 6vw, 35px); /* 為前綴留出空間 */
}

.cta-btn:before {
  content: "+";
  position: absolute;
  left: clamp(15px, 4vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: bold;
}

.cta-btn:hover {
  background-color: var(--gold);
  color: var(--black);
}

.divider {
  border-top: 1px solid #333;
  margin: 60px auto;
  width: 90%;
}

.pc,
.mobile {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 預設隱藏手機版圖片 */
.mobile {
  display: none;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 產品網格布局 */
.products-grid {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

/* 飲酒提示橫幅樣式 */
.drinking-tip {
  position: sticky;
  bottom: 0;
  z-index: 1;
  font-family: "Microsoft JhengHei", sans-serif;
  width: 100%;
  background-color: var(--dark-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  margin-top: 60px;
}

.drinking-tip p {
  color: var(--white);
  font-size: clamp(18px, 4vw, 50px);
}

.drinking-tip img {
  width: clamp(50px, 5vw, 90px);
  height: clamp(50px, 5vw, 90px);
  margin: 0 clamp(5px, 1vw, 10px);
}

.appointment img {
  width: 35%;
  height: auto;
  margin: auto;
}

/* RWD 斷點設定 */
@media screen and (max-width: 768px) {
  .wrap-container {
    width: 95%;
    padding: 20px 10px;
  }

  .header {
    margin-bottom: 40px;
  }

  .header h1::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .divider-container {
    margin: 0 auto 40px;
  }

  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-image-container {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .product-info {
    padding: 0;
  }

  .product-title {
    padding: 0 15px;
  }

  .divider {
    margin: 40px auto;
  }

  /* 提升可讀性 */
  .product-description,
  .product-specs {
    text-align: left;
    padding: 0 15px;
  }

  .divider-container {
    margin: 0 auto 40px;
  }

  /* 小螢幕顯示手機版圖片，隱藏電腦版圖片 */
  .pc {
    display: none;
  }

  .mobile {
    display: block;
  }
}

@media screen and (max-width: 480px) {
  .wrap-container {
    width: 100%;
    padding: 15px 2.5%;
  }

  .product-card {
    margin-bottom: 40px;
    padding: 5px;
  }

  .cta-btn {
    width: 80%;
    max-width: 300px;
  }
}

/* 深色模式支援 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--black);
    color: var(--white);
  }
}
