html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #ffffff;
  color: #342003;
  font-family: "Chiron GoRound TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

section {
  padding: 300px;
}

/* ================= 頁首 ================= */
header {
  background-color: rgb(117, 70, 0);
  height: 80px;
  width: 100%;
  position: relative;
}

header ul {
  position: absolute;
  right: 5vw;
  top: 0;
  line-height: 80px;
}
header li {
  display: inline;
  margin-right: 4vw;
}

header a img {
  position: absolute;
  width: 60px;
  height: auto;
  left: 10px;
  top: 10px;
}

/* ========== 導覽列 nav ========== */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #ff9900;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #ff9900;
}

nav a:hover::after {
  width: 100%;
}

/* 漢堡選單 */
.menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  width: 30px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 3px;
  transition: all 0.3s ease;
  position: relative;
}

.menu-toggle span::before {
  top: -8px;
  position: absolute;
}

.menu-toggle span::after {
  bottom: -8px;
  position: absolute;
}

/* 點擊時變 X */
.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active span::after {
  transform: rotate(-45deg);
  bottom: 0;
}

/* ================= Hero 區塊 ================= */
.hero {
  width: auto;
  height: 100vh;
  background-image: url("/image/8618d046-5fae-4336-aa43-b3c96b397ac6.png");
  background-size: cover;
  background-position: center;
  place-content: center;
  text-align: center;
  line-height: 50px;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero h1,
.hero p,
.hero a {
  opacity: 0;
  transform: scale(0.9);
  animation: fadeZoom 1s forwards;
}

.hero h1 {
  font-size: 2.5rem;
  animation-delay: 0.3s;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  animation-delay: 0.6s;
}

.hero a {
  color: white;
  text-decoration: none;
  border: 1px solid #ACACAC;
  padding: 10px 20px;
  border-radius: 5px;
  animation-delay: 0.9s;
}

@keyframes fadeZoom {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================= 關於我們 ================= */
.About-Us {
  color: #000;
  line-height: 30px;
}

.About h2 {
  width: 100%;
  font-size: 28px;
  margin-bottom: 20px;
}

/* ================= 菜單 ================= */
.Drink {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  place-content: center;
  text-align: center;
}

.Drink h2 {
  width: 100%;
  font-size: 28px;
  margin-bottom: 20px;
}

.Drinks {
  width: 300px;
  height: 360px;
  perspective: 1000px; /* 3D 透視效果 */
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: 12px;
}

/* hover 翻轉 */
.Drinks:hover .card-inner {
  transform: rotateY(180deg);
}

/* 正反面 */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

/* 正面 */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 背面 */
.card-back {
  background: linear-gradient(135deg, #ff8a37, #ffd65a);
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-align: center;
}

.card-back h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-back p {
  font-size: 14px;
  line-height: 1.4;
}

/* ================= 最新消息 ================= */
.news-section {
  padding: 60px 20px;
  background: #563100;
}

.news-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #ffffff;
  font-weight: 600;
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.news-item {
  position: relative;
  background: #fff;
  padding: 20px 20px 20px 100px;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* 日期 */
.news-date {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 55px;
  height: 55px;
  background: #f39c12;
  color: #fff;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: bold;
  line-height: 1.2;
}

.news-date .day { font-size: 20px; }
.news-date .month {
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* 標題 + 箭頭 */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.news-header h3 {
  font-size: 20px;
  margin: 0;
  color: #222;
}

.news-header .arrow {
  font-size: 18px;
  color: #666;
  transition: transform 0.3s;
}

.news-item.active .arrow {
  transform: rotate(90deg);
}

/* 展開內容 */
.news-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.news-item.active .news-content {
  max-height: 500px;
  opacity: 1;
  margin-top: 12px;
}

.news-content p {
  margin: 0;
  color: #555;
  line-height: 1.6;
}

/* ================= 門市資訊 ================= */
.store-container {
  display: flex;
  gap: 20px;
}

.store-list { flex: 1; }
.stroe-mep  { flex: 2; }

.address {
  color: #7c0606;
  text-decoration: underline;
  cursor: pointer;
}

.address:hover {
  color: #7c0606;
}

/* ================= 頁尾 ================= */
footer {
  color: white;
  background-color: #342003;
  padding: 20px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left p,
.footer-center p {
  margin: 5px 0;
}

/* ================= 字體樣式 ================= */
.inter-uniquifier {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.chiron-goround-tc-uniquifier {
  font-family: "Chiron GoRound TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

/* ================= 響應式 (手機版) ================= */
@media (max-width: 768px) {

  /* 全域 */
  section { 
    margin: 60px 20px;
    padding: 50px;
  }

  /* Header */
  header {
    height: 80px;
  }

  header ul {
    position: static;
    line-height: normal;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  header li {
    display: none;
    margin: 5px 0;
  }

  .newlogo {
    display: flex;
    order: 2;
    margin-left: auto;
    z-index: 1001;
  }

  nav { height: 60px; }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 25px;
    right: 20px;
    width: 30px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
  }

  .nav-links.active { display: flex; }
  .nav-links li { margin: 0; }

  /* Hero */
  .hero h1 { font-size: 1.8rem; }
  .hero p   { font-size: 1rem; }
  .hero a   { padding: 8px 16px; font-size: 14px; }

  /* 飲品 */
  .Drink { padding: 20px; gap: 20px; }
  .Drinks { width: 100%; height: auto; }
  .card-inner { height: 300px; }

  /* 最新消息 */
  .news-section { padding: 40px 10px; }
  .news-list { width: 100%; }
  .news-item { padding: 16px 20px 16px 80px; }
  .news-date { 
    width: 50px; 
    height: 50px; 
    font-size: 12px;
    left: 2.5px;
    top: 2.5px;
   }

  /* 門市資訊 */
  .store-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    display: inline;
  }

  .store { 
    flex: 1; 
    text-align: center;
    place-content: center;
    word-break:normal; 
  }
  .store-map iframe { width: 100%; height: 250px; }
  .store p {display:none;}
  .store h3 {
    text-align: left;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-right a { margin: 0 8px; }
}