/* === 1. Reset & Base === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
    background: #fff;
    color: #111;
    font-size: 16px;
  }
  
  *, *::before, *::after { box-sizing: inherit; }
  
  h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
  input, textarea {
    font-size: initial;
    }
  


  
  /* === 3. Layout Sections === */
  
  /* Header */
  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease;
    border-bottom: none !important;
  }

 

  .site-header.scrolled {
    background: #fff !important;
    backdrop-filter: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .site-header.scrolled .header_navbar-link-text,
  .site-header.scrolled .language-button,
  .site-header.scrolled .cart-button i,
  .site-header.scrolled .sign-in-button,
  .site-header.scrolled .language-button i,
  .site-header.scrolled .header_search-icon i {
    color: #333 !important;
  }

  .site-navbar {
    background: transparent;
  }
  .header_navbar-link-text{
    color: #fff !important;
  }
  
  .logo img {
    height: 42px;
  }
  
  .main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  
  .main-nav li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    padding: 6px 0;
    transition: color 0.2s;
  }
  .main-nav li a:hover { color: #84c100; }
  
  .header-actions {
    display: flex;
    gap: 18px;
    align-items: center;
  }
  
  .language-button,
  .cart-button,
  .sign-in-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 0 12px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
  }
  
  .cart-button i , .language-button i {
    font-size: 1.2rem;
    color: #fff;
  }

  .language-button:hover,
  .sign-in-button:hover {
    color: #84c100;
  }

  .cart-button:hover i{color:#84c100;}


  /* 展開式搜尋匡 */
  .header_search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
}

.header_search-icon {
    cursor: pointer;
    margin-right:12px;
    /* padding: 8px; */
}
.header_search-icon i {
  color: #fff;
  font-size: 1.2rem;
}

.header_search-icon.focus {
    display: none;
}

.header_search-input {
    display: none;
    width: 0;
    border: none;
    background: transparent;
    color: #000;
    padding: 8px;
    padding-right: 40px;

}

.header_search-container.active {
    background: #fff;
    /* border-radius: 8px; */
}

.header_search-container.active .header_search-input {
    display: block;
    width: 300px;
}

.header_search-container.active .header_search-icon.gray {
    display: none;
}

.header_search-container.active .header_search-icon.focus {
    display: block;
}

.header_search-recommand-box {
    display: none;
    position: absolute;
    top: 120%;
    left: 0;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.header_search-container.active .header_search-recommand-box {
    display: block;
}
  
  /* === 4. HERO === */
  .hero {
    min-height: 80vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 120px;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    background: linear-gradient(90deg, rgba(18,18,18,0.6) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding-left: 64px;
    padding-right: 64px;
  }
  
  .hero-content h2 {
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700 !important;
    margin-bottom: 24px;
  }
  
  .hero-content p {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 300 !important;
    margin-bottom: 32px;
  }
  

  .cta-button:hover { background: #6ba900; }
  
  /* === 5. Search Bar === */
  .search-section {
    min-height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f3f4f6;
    padding: 24px 0 24px 0;
  }
  .search-title{
    color: #5e5e5e;
    display: flex;
    align-items: center;
  }
  
  .search-section h2 {
    font-size: 2rem;
    color: #5e5e5e;
    margin-bottom: 28px;
  }
  
  .search-form {
    display: flex;
    max-width: 800px;
    width: 50%;
    background: #fafafa;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .search-form input[type="text"] {
    flex: 1;
    border: none;
    padding: 13px 16px;
    font-size: 1rem;
    color: #495057;
    background: transparent;
  }

  .search-form input[type="text"]:focus {
    outline: 1px solid #84c100;  /* 使用绿色外框 */
    outline-offset: -1px;        /* 让外框紧贴输入框 */
    border-radius: 8px 0 0 8px;  /* 左上 右上 右下 左下 */
}
  
  .search-form button {
    /* background: #518000; */
    /* background: #527C1C; */
    background: #558032;
    color: #fff;
    border: none;
    padding: 13px 24px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background 0.2s;
  }
  .search-form button:hover { background: #6ba900; }


  /* 文字動態區塊 */
  .vertical-slider {
    display: inline-block;
    position: relative;
    height: 0.95em;
    overflow: hidden;
    font-size: 1em;
    width: fit-content;  /* 改为自适应内容宽度 */
    min-width: 200px;  
    font-weight: 600;
    margin-left: 12px;
    margin-bottom: 4px;
  }
    .slide {
      position: absolute;
      left: 0; top: 0;
      width: 100%;
      opacity: 0;
      transform: translateY(100%);
      transition: all 0.7s cubic-bezier(.48,.07,.46,.99);
      color: #000;
    }
    .slide.active {
      opacity: 1;
      transform: translateY(0);
      transition: all 0.7s cubic-bezier(.48,.07,.46,.99);
      z-index: 2;
    }
    .slide.last {
      opacity: 0;
      transform: translateY(-100%);
      transition: all 0.7s cubic-bezier(.48,.07,.46,.99);
      z-index: 1;
    }

    .slide .char {
      opacity: 0;
      transform: translateY(30px);
      display: inline-block;
      transition:
        opacity 0.4s,
        transform 0.6s;
      /* 需要「沒有active時」把字母收起來 */
    }

    .slide.active .char {
      opacity: 1;
      transform: translateY(0);
      transition-delay: calc(var(--char-index) * 0.07s); /* 這行就是stagger關鍵！！ */
    }
    .slide:not(.active) .char {
      transition-delay: 0s;
    }
  
  /* === 6. Features === */
  .feature-section {
    display: flex;
    flex-direction: column;
    /* gap: 64px; */
    /* padding: 80px 0; */
  }
  
  .feature {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    margin: 0 auto;
    width: 100%;
  }
  
  .feature-img {
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
  }
  
  .feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  .feature-content {
    flex: 0 0 50%;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0 64px;
  }
  
  .feature-content h2 ,.feature-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #3d3d3d;
  }
  
  .feature-content p {
    color: #6d6d6d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;

  }

  .feature-content ul {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
  }
  .feature-content li {
    padding-left: 0;
    margin-left: 0;
    margin-bottom: 4px;
    color: #6d6d6d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
  }
  .cta-link {
    color: #3d3d3d;
    font-weight: 700;
    font-size: 1.06rem;
    display: inline-block;
    margin-top: 6px;
    transition: color 0.2s;
  }
  .cta-link.white {
    color: #fff;
  }
  .cta-link:hover { color: #84c100; }
  


  .feature-section .feature:nth-child(even) { flex-direction: row-reverse; }
  
  .feature-content ul {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
  }
  
  .feature-content li {
    padding-left: 0;
    margin-left: 0;
    color: #6d6d6d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
  }
  
  /* === 7. CTA Section === */
  .cta-section {
    background: #2d5738;
    color: #fff;
    padding: 64px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
  }
  
  .cta-section::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 50%;
    width: 1px;
    background-color: rgba(255, 255, 255, 1);
    transform: translateX(-50%);
  }

  .cta-content {
    width: 45%;
    padding: 0 20px;
  }
  
  .cta-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 14px;
  }

  .cta-button {
    display: inline-block;
    background: #29272E;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    border: none;
    margin: 8px 12px 24px 12px;
  }

  

  /* === 9. Responsive === */

  @media (max-width: 992px) {
    .site-header {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: rgba(0,0,0,0.15) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    .site-header.scrolled {
        background: #fff !important;
        backdrop-filter: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding-top: 80px;
    }

    .site-header .header_navbar-link-text,
    .site-header .language-button,
    .site-header .cart-button i,
    .site-header .sign-in-button,
    .site-header .header_search-icon i {
        color: #333 !important;
    }



    .site-header .header_search-icon i,.navbar-toggle i {
        color: #fff !important;
    }
    .site-header .header_logo-pc.logo-default {
        display: none;
    }
    .site-header .header_logo-pc.logo-scrolled {
        display: block;
    }

    .site-header .logo-scrolled {
        width: 220px;
    }

    .header_icon-group {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }


    .navbar-header{
      background-color: transparent !important;
    }

    .navbar-collapse {
        background-color: #fff !important;
        border-color: transparent !important;
    }



    .navbar-toggle .icon-bar {
        background-color: #333 !important;
    }

    .header_navbar {
        padding: 0 20px;
    }
    .header_search-container{
      border-radius: 0;
    }

    .header_search-container.active {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw !important;
        background: #fff;
        z-index: 9999;
        padding: 10px;
        border-radius: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .header_search-container.active .header_search-input {
        width: 100%;
        border-radius: 0;
    }

    .header_search-recommand-box {
        display: none;
        position: absolute;
        top: 120%;
        left: 0;
        background: #fff;
        padding: 16px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .header_search-container.active .header_search-recommand-box {
        display: block;
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        width: 100vw !important;
        margin: 0;
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
        box-sizing: border-box;
    }

    .header_search-container.active .header_search-recommand-keyword {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header_search-container.active .header_search-recommand-keyword a {
        margin: 0;
    }

    .header_search-clear {
        right: 40px;
    }

    .header_search-container.active ~ .header_search-overlay {
        display: block;
    }
    }
  
  
  @media (max-width: 900px) {
    .site-header, .header-actions { 
        flex-direction: column; 
        align-items: flex-start; 
    }


    .main-nav ul { 
        flex-direction: column; 
        gap: 12px; 
    }

    .hero::before {width: 100%;}
    .search-form {width: 80%;}
  
    .feature { 
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
    }
    .feature-section .feature:nth-child(even) { 
        flex-direction: column; 
    }
    .feature-content {
        padding: 64px;
        width: 100%;
    }

    .feature-img {
        width: 100%;
        height: 300px;
        overflow: hidden;
    }
    .feature-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .search-title {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-title .vertical-slider {
        display: inline-block;
        min-width: 150px;  
        margin-left:8px;  
    }

    .cta-section {
        flex-direction: column;
        padding: 32px 64px;
    }

    .cta-section::after {
        display: none;  
    }
    
    .cta-content:first-child::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 1px;
      background-color: rgba(255, 255, 255, 1);
  }

    .cta-content {
        width: 100%;
        padding: 24px 0;
        position: relative;
    }


  }
  
  @media (max-width: 600px) {
    .site-header { padding: 0 10px; height: auto; }
    .hero-content h2 { font-size: 2rem; }
    .cta-content h2 { font-size: 1rem; }
    .feature-content h2,.feature-content h1 { font-size: 1.5rem; }
    .search-form { width: 90%; }
    .search-section h2{
      font-size: 1.5rem;
    }
    .hero{
      min-height: 70vh;
       background-position: 80% center;
      background-repeat: no-repeat;
      background-size: cover;
    }
    .hero::before {width: 100%;  background: linear-gradient(90deg, rgba(18,18,18,0.6) 0%, rgba(0,0,0,0.4) 100%);}
    .hero-content{padding:0 32px;}
    .feature-content{padding:32px;}
    .site-header-top{
      padding: 0px;
    }

    .cta-section {
      padding: 32px;
  }

    .vertical-slider {
      height: 1.25em;
      font-size: 1em;
      min-width: 100px!important; 
      font-weight: 600;
      margin-bottom: 0px;
    }

  }

.header_logo-pc {
    height: 42px;
    transition: all 0.3s ease;
}

.header_logo-pc.logo-default {
    display: block;
}

.header_logo-pc.logo-scrolled {
    display: none;
}

.site-header.scrolled .header_logo-pc.logo-default {
    display: none;
}

.site-header.scrolled .header_logo-pc.logo-scrolled {
    display: block;
}

.site-header.scrolled .logo-scrolled {
    width: 220px;
}

.site-header.scrolled .navbar-toggle i {
    color: #333 !important;
}

.header_search-clear {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    padding: 5px;
    z-index: 1000;
    font-size: 20px;
}

.header_search-container.active .header_search-clear {
    display: block;
}

.header_search-clear:hover {
    color: #333;
}

.header_search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}
