/* =========================================================
   RESET
========================================================= */
* {
  padding: 0;
  margin: 0;
}
html, body {
  margin: 0 !important;
  padding: 0;
}

/* =========================================================
   HEADER（固定 Header）
========================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(10, 28, 26, 0.8);
  z-index: 1200;
}

/* LOGO（H1）*/
h1 {
  color: white;
  position: absolute;
  left: 120px;
  top: 0px;
  line-height: 80px;
  background-image: url(phto/w1.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 210px;
  text-indent: -9999px;
}

.logo img {
  width: auto !important;
  height: 42px;          /* 你原本的高度 */
  object-fit: contain;   /* 保持比例，不變形 */
  aspect-ratio: auto;    /* 避免瀏覽器硬套比例 */
}


/* 電腦版選單 */
header ul {
  position: absolute;
  right: 5vw;
  top: 0;
  line-height: 80px;
}
header li {
  display: inline;
  margin-right: 4vw;
}
header a {
  color: white;
  text-decoration: none;
}
header a:hover {
  text-decoration: underline;
}

/* Kill time 專用字體（套用在任何 .kill-time 上） */
.kill-time {
  font-family: "Lobster", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: none;
}


/* 漢堡按鈕：預設隱藏 (電腦版) */
.menu {
  display: none;
}

/* =========================================================
   房地合一稅「右上角」按鈕（桌機＋手機）
========================================================= */

/* 預設：右上角（桌機） */
.fhet-float-link {
  position: fixed;
  top: 90px;  /* 在 header 下方 */
  right: 20px;
  z-index: 1300;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(15,23,42,.96);
  color: #f9fafb;
  border: 1px solid rgba(255,255,255,.30);
  box-shadow: 0 6px 14px rgba(0,0,0,.4);

  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  white-space: nowrap;
}

.fhet-float-link:hover,
.fhet-float-link:focus-visible {
  background: rgba(15,23,42,1);
  box-shadow: 0 8px 18px rgba(0,0,0,.6);
  text-decoration: none;
  outline: none;
}

/* 手機調整：避免遮住漢堡按鈕與 LOGO */
@media (max-width: 768px){
  .fhet-float-link {
    top: 86px;  /* LOGO 下緣 */
    right: 16px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* =========================================================
   首頁 — 大背景區
========================================================= */
.news {
  background-color: antiquewhite;
  color: white;
  height: 95vh;
  background-image: url("phto/woman .jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 80px; /* 不被 header 擋住 */
}

.news h2 {
  font-size: 80px;
  margin-top: 10px;
}
.news p {
  color: #FEF7E6;
  font-size: 18px;
  margin: 25px 0;
}
.news a {
  color: white;
  text-decoration: none;
  border: 1px solid #ACACAC;
  padding: 10px 20px;
  border-radius: 5px;
}
.news a:hover {
  text-decoration: underline;
}

/* =========================================================
   精選物件區
========================================================= */
.slogan {
  background-color: #485652;
  color: white;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  line-height: 1.8em;
}
section {
  background-color: #4ec5b7;
}

.product {
  display: flex;
  background-color: #ede9db;
  justify-content: space-between;
  align-items: center;
  padding: 100px 180px 80px;
}
.product div {
  width: 300px;
  text-align: center;
}
.product img {
  width: 100%;
  border-radius: 10px;
}
.product h3 {
  font-size: 20px;
  margin: 20px 0;
}
.product p {
  font-size: 14px;
  line-height: 1.6em;
}

/* =========================================================
   Newsletter 區
========================================================= */
.newsletter {
  background-color: #485652;
  color: white;
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter input,
.newsletter button {
  background-color: transparent;
  color: white;
  border: 1px solid #949d9a;
  padding: 10px;
  border-radius: 5px;
}
.newsletter input {
  width: 200px;
  margin-right: 15px;
}
.newsletter button {
  width: 80px;
  cursor: pointer;
}
/* email link */
.newsletter .email-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: underline;
  color: inherit;
}
.newsletter .icon-mail{
  width: 22px;
  height: 22px;
}

/* =========================================================
   Footer
========================================================= */
footer {
  background-color: #000000;
  color: #B7B7B7;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
}

/* =========================================================
   手機版排版
========================================================= */
@media screen and (max-width: 768px) {

  /* 隱藏電腦版選單 */
  header ul {
    display: none;
  }

  /* LOGO 置中 */
  header h1 {
    left: 50%;
    transform: translateX(-50%);
  }

  /* 顯示漢堡按鈕 */
  .menu {
    display: block;
    background-color: transparent;
    color: white;
    font-size: 35px;
    position: absolute;
    top: 15px;
    left: 20px;
    border: none;
    cursor: pointer;
  }

  /* 側邊選單 */
  header nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 160px;
    height: 75vh;
    background-color: rgba(10, 28, 26, 0.97);
    padding-top: 80px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  header nav ul {
    display: block !important;
    margin: 0;
    padding: 0 16px;
    line-height: 1.6;
  }


  header nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 8px;
    color: #fff;
  }
  header nav a:hover {
    background: rgba(255,255,255,0.1);
  }

  body.nav-open header nav {
    transform: translateX(0);
  }
  body.nav-open {
    overflow: hidden;
  }

  /* 遮罩 */
  .backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }
  body.nav-open .backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* 手機 product */
  .product {
    flex-direction: column;
    padding: 60px 0;
  }
  .product div {
    width: 80%;
    margin-bottom: 30px;
  }

  /* 手機 newsletter */
  .newsletter input {
    width: 150px;
    margin-bottom: 10px;
  }
  .newsletter input,
  .newsletter button {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  .newsletter .form-row {
    text-align: center;
  }
}

/* =========================================================
  桌機：側欄不鎖定捲動
========================================================= */
@media (min-width: 769px) {
  body.nav-open {
    overflow: visible !important;
  }
  .backdrop {
    display: none !important;
  }
}

