@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Arial", sans-serif;
  background: #FAF4FF;
}


/* Navbar */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 8px 25px;
  border-radius: 50px;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.10);
  z-index: 1000;

  /* position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: transparent; 
  backdrop-filter: none; 
  -webkit-backdrop-filter: none; 
  padding: 8px 25px;
  border-radius: 50px;
  box-shadow: none; 
  z-index: 1000;
  transition: all 0.3s ease; */
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  width: 100%;
}

.navbar-container a{
   text-decoration: none;
   color: #333;
   font-size: 23px;
}

.navbar-container h2{
  text-decoration: none;
   color: #333;
   font-size: 22px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  vertical-align: middle;
  margin-right: 2px;
  border-radius: 50%;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: auto;
  
}


.nav-links li a {
  text-decoration: none;
  text-align: center;
  font-size: 23px;
  font-weight: 600;
  color: #333;
  transition: color 0.2s;
  margin: 0 10px;
}

.nav-links li a:hover {
  color: #007f7f;
  box-shadow: 0 2px;
  padding-bottom: 6px;
}

/* Login Button */
.btn-login {
  background-color: teal;
  padding: 6px 14px;
  border-radius: 15px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn-login:hover {
  background-color: #007f7f;
}

.auth-error {
  color: #d60000;
  font-size: 14px;
  margin: 10px 0;
}


/*  Hamburger  */
.hamburger {
  display: none; 
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger {
  z-index: 3001;
  position: relative;
  cursor: pointer;
}

.nav-links {
  z-index: 3000;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* Hero / Subscribe */
.hero {
  position: relative;
  padding-top: 150px;
  height: 90vh;
  background-image: url("../img/bridge.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  position: relative;
}

.hero-inner h1 {
  font-size: 2.8rem;
  color: #CDCD9A;
  text-shadow: 2px 2px 1px rgba(0,0,0,0.6);
}

.hero-inner h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: #CDCD9A;
  text-shadow: 2px 2px 1px rgba(0,0,0,0.6);
}

/* Buttons */
.btn {
  display: inline-block;
  background: #DAA520;
  color: white !important;
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1.5rem;
  text-align: center;
}

.btn:hover {
  background: teal;
}

/* Subscribe section */
#subscribe-section {
  width: 100%;
  margin-top: 24px;
  display: none;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  z-index: 100;
  max-width: 420px;
}

.subscribe-box {
  background: #ffffff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.subscribe-box label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
  color: #333;
}

.subscribe-box input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.subscribe-box .btn {
  width: 100%;
  margin-top: 20px;
}


/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(0,0,0,0.5);
}

.modal-content {
  background: white;
  width: 350px;
  margin: 10% auto;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.modal-content input {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: 1px solid #bbb;
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background: #1976d2;
  color: white;
  border-radius: 6px;
  border: none;
  font-size: 16px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 24px;
}

/* Contact Form */
.contact-section {
  padding: 50px;
  margin: 0 0 50px 0;
  background-image: url("../img/top.jpg");
  background-size: cover;
  background-attachment: fixed;
}

.contact-section-form {
  max-width: 500px;
  background: rgba(255, 255, 255, 0.92);
  padding: 30px;
  margin: auto;
  border-radius: 20px;
}

.contact-section-form h2 {
  text-align: center;
}

.contact-section-form label {
  font-weight: bold;
}

.contact-section-form input,
.contact-section-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 15px;
}

.contact-section-form button {
  width: 100%;
  padding: 12px;
  background: teal;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.contact-section-form button:hover {
  background: #006667;
}

/* Footer */
:root {
  --footer-bg: teal;
  --footer-text: #d1d1d1;
  --footer-accent: #ffffff;
  --footer-border: #333333;
}

.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  margin-top: 50px;
  font-family: 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-column h4{
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.footer-logo {
  color: var(--footer-accent);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.footer-logo-ico{
  width: 180px;
  height: auto;
  vertical-align: middle;
  margin-right: 2px;
  border-radius: 50%;
}

/* .footer-desc {
  line-height: 1.6;
  font-size: 0.95rem;
  padding-right: 20px;
} */

.footer-title {
  color: var(--footer-accent);
  font-size: 1.8rem;
  margin-bottom: 10px;
  position: relative;
}

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
}

.footer-links li, .footer-contact li {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--footer-accent);
  text-decoration: underline;
}

.social-links a {
  color: var(--footer-text);
  font-size: 1.2rem;
  margin-right: 15px;
  transition: transform 0.3s;
  display: inline-block;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: var(--footer-accent);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  font-size: 0.8rem;
  text-align: center;
}

.footer-bottom .footer-container {
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-size: 17px;
}

.payment-icons {
  font-size: 1.5rem;
  display: flex;
  gap: 15px;
  justify-content: center;
}


@media (max-width: 768px) {
  .footer-column {
    flex: 1 1 100%;
    text-align: center;
  }
  .footer-desc {
    padding-right: 0;
  }
  .payment-icons {
    margin-top: 10px;
  }
  .hero-inner h1 {
    font-size: 1.7rem;
  }
  .hero-inner h3 {
    font-size: 1.2rem;
  }

  .navbar-container h2{
    display: none;
  }
  

}   

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 95px;
  right: 20px;
  z-index: 9999;
 
}

.flash-message {
  background: #2ecc71;
  color: #fff;
  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-size: 20px;
}

.flash-message.success {
  background-color: #28a745;
}

.flash-message.error {
  background-color: #dc3545;
}

.flash-message.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}



/* 購物車 Navbar Cart Icon */
.nav-cart{
  display: flex;
  align-items: center;
  background-image:("./img/shoppingCart.png");
  position: relative;
  margin: 10px 30px 3px 10px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.cart-icon {
  width: 22px;
  height: 22px;
  color: #111; 
}

.cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #d62929;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.custom-features-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    padding: 40px 170px 30px 170px;
    
}

.feature-item {
    flex: 1;
    min-width: 250px; 
    text-align: center;
    padding: 15px;
}

.feature-item img {
    width: 70px;
    height: auto;
}

.feature-item h5 {
    font-size: 30px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    font-size: 20px;
    color: #666;
    line-height: 1.5;
}

/* line-phone */
.social-line-phone {
    display: flex;
    gap: 15px; 
    padding-bottom: 20px;
    align-items: center;
}

.social-line-phone-btn img {
    width: 80px; 
    height: 80px; 
    border-radius: 8px;
    display: block;
    transition: transform 0.2s;
}

.social-line-phone-btn:active img {
    transform: scale(0.95); 
}

.social-line-phone-text {
    display: block;         
    text-align: center;      
    font-size: 14px;         
    color: #FFFFFF;         
    margin-top: 5px;        
    font-weight: bold;       
    text-decoration: none;  
}

.social-line-phone-text a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* line phone 固定 */ 
.social-line-phone {
    position: fixed;
    right: 15px;  
    bottom: 30px;  
    display: flex;
    flex-direction: column; 
    gap: 10px;     
    z-index: 9999; 
}

.social-line-phone-btn img {
    width: 70px; 
    height: 70px;
    margin-right: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* --- 768px 以下 (48em) --- */
@media (max-width: 48em) { 
  .custom-features-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px; 
    padding: 30px 20px;
  }

  .feature-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
    margin: 0;
  }

  .feature-item img {
    width: 60px; 
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
  }

  .feature-item h5 {
    font-size: 20px;
    margin: 0 0 10px 0;
  }

  .feature-item p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
  }

  .social-line-phone {
    justify-content: center; 
  }   

  .social-line-phone-btn img {
    width: 75px; 
    height: 75px;
  }

  .social-text {
    display: block;
    font-size: 13px;       
    margin-top: 6px;       
    color: #ffffff;        
    white-space: nowrap;  
    letter-spacing: 0px;  
  }

  .social-links {
    justify-content: center; 
    gap: 40px;           
  }
  
  .hero-inner p{
    font-size: 1.6rem;
  }


  /* line phone 固定 */
@media (max-width: 768px) {
  .social-line-phone {
    flex-direction: row;
    width: auto;
    height: auto;
    right: 15px;
    bottom: 10px;
    gap: 7px;
  }

  .social-line-phone-btn img {
    width: 48px; 
    height: 48px;
    margin-right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);

  }
}


}

/* --- 769px  --- */
@media (max-width: 769px){
  .nav-links li a {
    font-size: 22px;
    line-height: 1.4;
  }
}

/* --- 1024px 以下 (手機/平板) --- */
@media (max-width: 1024px) {
  .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.4); 
    z-index: 2000;
  }
  
  .hamburger {
    display: block;
    order: 3;
  }

  .nav-cart {
    order: 2;
    margin-left: auto;
    margin-right: 20px; 
    display: flex;
    align-items: center;
  }

  .nav-links {
    order: 4;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    background: white;
    flex-direction: column;
    padding-top: 20px;
    display: none; 
    z-index: 3000;
    align-items: stretch;
    margin-left: 0; 
  }

  /*  JS */
  .nav-links.show {
    display: flex ;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  }

  .nav-links li a {
    text-align: center;
    padding: 20px 30px;
    width: 100%;
    margin: 0;
  }

  .facebook-1 {
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 20px 0; 
    padding-left: 15px;
  }

  .facebook-2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
  }

  /* 新增：滑動後Navbar效果 */
/* .navbar.scrolled {
  background: rgba(255, 255, 255, 0.40);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.30);
} */

}

/* --- 1025px --- */
@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }

  .nav-cart,
  .nav-links {
    order: initial;
    display: flex; 
  }
}
