/* === 基礎重設與變數 === */
:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
  transition: color 0.25s;
}

a:hover {
  color: #535bf2;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* === 背景流體暈光動畫 === */
.main-bg {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 60%, #e2b13c 0%, #2d3553 50%, #474e6b 100%);
  flex-grow: 1;
}

.glow-animate {
  position: absolute;
  left: 0;
  top: 0;
  width: 60vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 30% 60%, #e2b13c 0%, #e2b13c88 40%, #2d355300 80%);
  animation: glow-move 8s ease-in-out infinite alternate;
  filter: blur(0.5px);
}

@keyframes glow-move {
  0% {
    transform: scale(1) translateY(0px) translateX(0px);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.08) translateY(-20px) translateX(10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0px) translateX(0px);
    opacity: 0.95;
  }
}

/* 確保內容在暈光之上 */
.main-bg > *:not(.glow-animate) {
  position: relative;
  z-index: 1;
}

/* === Header 導覽列 === */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 128px 20px 64px;
  position: sticky;
  top: 0;
  background: #2a2f45;
  box-shadow: 0 2px 12px rgba(34, 42, 58, 0.2);
  z-index: 100;
  box-sizing: border-box;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 6px rgba(34, 42, 58, 0.47);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 0;
}

.nav-menu a {
  color: #ffd87a;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a.active,
.nav-menu a:hover {
  background: #e2b13c;
  color: #222a3a;
}

/* 產品下拉選單 Wrapper */
.nav-product-wrapper {
  position: relative;
  display: inline-block;
  outline: none;
}

.nav-product {
  color: #ffd87a;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.nav-product:hover,
.nav-product:focus,
.nav-product.active {
  background: #e2b13c;
  color: #222a3a;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 50%;
  top: 120%;
  transform: translateX(-50%);
  background: #2d3553;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 12px 24px;
  min-width: 220px;
  z-index: 10;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-content div {
  cursor: pointer !important;
  color: #fff;
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid #3a4260;
  transition: background 0.2s, color 0.2s;
  border-radius: 4px;
  text-align: left;
}

.dropdown-content div:last-child {
  border-bottom: none;
}

.dropdown-content div:hover,
.dropdown-content div:focus,
.dropdown-content div.active {
  background: #ffd87a;
  color: #222a3a;
  padding-left: 8px;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: #ffd87a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.close-btn {
  display: none;
  background: none;
  border: none;
  color: #ffd87a;
  font-size: 2rem;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* === 語言切換選單 === */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.lang-btn {
  background: none;
  border: none;
  color: #ffd87a;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  padding: 4px 8px;
}

.lang-arrow {
  margin-left: 4px;
  font-size: 0.9em;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 120%;
  background: #23263a;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  min-width: 140px;
  z-index: 20;
  padding: 8px 0;
  font-size: 0.95rem;
}

.lang-dropdown-menu.show {
  display: block;
}

.lang-option {
  padding: 8px 20px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
  color: #ffb13c !important;
  font-weight: bold;
  background: #222 !important;
}

/* === 首頁 (HomePage) === */
.main-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 32px;
}

.main-title {
  font-size: 2.2rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  margin-bottom: 160px;
  letter-spacing: 1.5px;
}

.main-title-large {
  font-size: 3.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 3px 6px 0 rgba(34, 42, 58, 0.33);
  margin-bottom: 64px;
  line-height: 1.5;
  letter-spacing: 2px;
}

.main-subtitle {
  font-size: 1.3rem;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

/* === 產品目錄頁 (ProductsPage) === */
.products-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

.products-title {
  color: #ffd87a;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  letter-spacing: 2px;
  margin-top: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
  max-width: 900px;
}

.product-card {
  background: #474e6b;
  border-radius: 18px;
  padding: 18px 18px 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 16px rgba(34, 42, 58, 0.2);
  min-width: 260px;
  max-width: 330px;
  min-height: 330px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34, 42, 58, 0.35);
}

.product-title {
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 1px;
}

.product-img {
  width: 260px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(34, 42, 58, 0.13);
  box-shadow: 0 2px 12px rgba(34, 42, 58, 0.13);
}

/* === 機器銷售頁 (MachineSalesPage) === */
.machine-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

.machine-title {
  color: #fff;
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  text-align: center;
  margin-top: 6px;
}

.machine-title-highlight {
  color: #ffd87a;
}

.machine-desc {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 32px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.machine-flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  width: 100%;
  margin-top: 12px;
}

.machine-img-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 0;
  height: 100%;
}

.machine-img-tip {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.7;
}

.machine-img {
  width: 160px;
  height: 200px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(34, 42, 58, 0.13);
  box-shadow: 0 2px 16px rgba(34, 42, 58, 0.2);
  transition: transform 0.25s;
}

.machine-img:hover {
  transform: scale(1.05);
}

.machine-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  max-width: 600px;
  width: 100%;
  align-items: end;
}

.machine-feature-card {
  background: #474e6b;
  border-radius: 14px;
  padding: 22px 28px 18px 28px;
  color: #fff;
  min-width: 220px;
  max-width: 280px;
  min-height: 170px;
  box-shadow: 0 2px 12px rgba(34, 42, 58, 0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  position: relative;
  box-sizing: border-box;
}

.machine-feature-icon {
  font-size: 2rem;
  color: #e2b13c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-feature-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-align: left;
}

.machine-feature-desc {
  font-size: 0.90rem;
  color: #fff;
  opacity: 0.92;
  text-align: left;
}

.machine-img-block .machine-feature-card {
  min-height: 120px;
}

/* === 挖礦與獎勵機制 (MiningSection) === */
.mining-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mining-title {
  color: #ffd87a;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  letter-spacing: 2px;
}

.mining-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  width: 100%;
  max-width: 900px;
  margin-bottom: 32px;
}

.mining-card {
  background: #474e6b;
  border-radius: 18px;
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 16px rgba(34, 42, 58, 0.2);
  min-height: 160px;
  position: relative;
  box-sizing: border-box;
}

.mining-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.mining-card-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.mining-card-desc {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 18px;
  text-align: left;
}

.mining-divider {
  width: 100%;
  max-width: 900px;
  border-bottom: 2px solid #b6b6b6;
  margin: 32px 0 16px 0;
}

.mining-footer {
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.6;
}

.mining-footer a {
  color: #ffd87a;
  text-decoration: underline;
  cursor: pointer;
}

/* === 機器託管服務頁 (MachineHostingPage) === */
.hosting-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hosting-title {
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  letter-spacing: 2px;
  text-align: center;
}

.hosting-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 900px;
  margin-bottom: 48px;
}

.hosting-img-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
  max-width: 220px;
}

.hosting-img {
  width: 220px;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(34, 42, 58, 0.13);
  box-shadow: 0 2px 12px rgba(34, 42, 58, 0.13);
}

.hosting-img-label {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 10px;
  text-align: center;
  opacity: 0.85;
}

.hosting-card {
  background: #474e6b;
  border-radius: 18px;
  padding: 24px 28px;
  color: #fff;
  min-width: 640px;
  max-width: 640px;
  width: 640px;
  box-shadow: 0 2px 16px rgba(34, 42, 58, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1rem;
  text-align: left;
  margin-left: 48px;
  box-sizing: border-box;
}

.hosting-card ul {
  margin: 0;
  padding-left: 20px;
}

.hosting-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.hosting-card li:last-child {
  margin-bottom: 0;
}

/* 託管服務優勢 */
.hosting-adv-section {
  width: 100%;
  background: none;
  margin-top: 32px;
  padding: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hosting-adv-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 36px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  text-align: center;
  letter-spacing: 2px;
}

.hosting-adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 32px;
  width: 100%;
  max-width: 1200px;
  align-items: start;
}

.hosting-adv-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  box-sizing: border-box;
}

.hosting-adv-main {
  color: #ffd87a;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}

.hosting-adv-desc {
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0;
  border-top: 2px solid #444a6b;
  padding-top: 18px;
  min-height: 60px;
  width: 100%;
}

/* === 算力租賃頁 (ComputeRentalPage) === */
.compute-main {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
}

.compute-title {
  color: #fff;
  font-size: 2.6rem;
  font-weight: bold;
  margin-bottom: 64px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  letter-spacing: 2px;
  line-height: 1.4;
}

.compute-desc {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 48px;
  line-height: 1.7;
}

.compute-contact {
  color: #fff;
  font-size: 1.15rem;
  margin-top: 32px;
  text-align: center;
  line-height: 1.8;
}

.compute-contact a {
  color: #ffd87a;
  text-decoration: underline;
  font-size: 1.15rem;
}

.compute-contact span[role="img"] {
  font-size: 1.3rem;
  margin-right: 6px;
}

/* === 客製化 AI 頁 (CustomAISolutionPage) === */
.customai-main {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
}

.customai-title {
  color: #fff;
  font-size: 2.6rem;
  font-weight: bold;
  margin-bottom: 64px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  letter-spacing: 2px;
  line-height: 1.4;
}

.customai-desc {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 48px;
  line-height: 1.7;
}

.customai-contact {
  color: #fff;
  font-size: 1.15rem;
  margin-top: 32px;
  text-align: center;
  line-height: 1.8;
}

.customai-contact a {
  color: #ffd87a;
  text-decoration: underline;
  font-size: 1.15rem;
}

.customai-contact span[role="img"] {
  font-size: 1.3rem;
  margin-right: 6px;
}

/* === 聯絡我們頁 (ContactPage) === */
.contact-bg {
  min-height: 100vh;
  background: #393f5a;
}

.contact-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
}

.contact-title {
  color: #fff;
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 32px;
  text-shadow: 2px 4px 12px rgba(34, 42, 58, 0.6);
  margin-top: 6px;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 32px 12px;
  width: 100%;
  max-width: 900px;
  justify-content: center;
  align-items: stretch;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 320px;
  max-width: 340px;
  grid-row: 1 / span 2;
  grid-column: 1;
}

.contact-block {
  background: #474e6b;
  border-radius: 14px;
  padding: 18px 28px;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px rgba(34, 42, 58, 0.13);
  box-sizing: border-box;
}

.contact-icon {
  font-size: 1.4rem;
}

.contact-link {
  color: #fff;
  font-size: 1rem;
  word-break: normal;
  white-space: nowrap;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s, background 0.2s;
}

.contact-link:hover,
.contact-link:focus {
  color: #222a3a;
  background: #ffd87a;
  border-radius: 4px;
  outline: none;
  text-decoration: underline;
}

.contact-qr {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  box-sizing: border-box;
}

.contact-qr-title {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}

.contact-qr-img {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.contact-card {
  background: #474e6b;
  border-radius: 14px;
  padding: 18px;
  min-width: 340px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 12px rgba(34, 42, 58, 0.13);
  margin-left: 0;
  align-self: stretch;
  justify-content: flex-start;
  grid-row: 1 / span 2;
  grid-column: 2;
  box-sizing: border-box;
}

.contact-card-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
  align-self: flex-start;
}

.contact-card-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-card-img {
  width: 320px;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  transition: transform 0.2s;
}

.contact-card-img:hover {
  transform: scale(1.02);
}

/* === 頁尾 (Footer) === */
.footer {
  width: 100%;
  background: rgba(44, 53, 83, 0.7);
  color: #fff;
  text-align: center;
  padding: 16px 0 12px 0;
  font-size: 1rem;
  letter-spacing: 1px;
  border-top: 2px solid #b6b6b6;
  margin-top: auto;
  box-sizing: border-box;
}

/* === 載入淡入動畫 === */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* === RWD 媒體查詢與行動端樣式 (Responsive CSS) === */
@media (max-width: 700px) {
  /* 導覽列 RWD */
  .header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 4vw;
    gap: 0;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .hamburger-menu {
    display: block;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: #393f5a;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: right 0.3s ease;
    z-index: 900;
    box-sizing: border-box;
  }

  /* 非開啟狀態下，使用 display: none 避免影響點擊 */
  .nav-menu:not(.open) {
    display: none !important;
  }

  .nav-menu.open {
    display: flex !important;
    right: 0;
  }

  .nav-menu .close-btn {
    display: block;
  }

  .nav-menu > a,
  .nav-menu > .nav-product-wrapper,
  .nav-menu > .lang-dropdown-wrapper {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    background: none;
    margin: 10px 0;
    padding: 0;
    text-align: center;
    width: auto;
    display: block;
    transition: color 0.2s;
  }

  .nav-menu > a.active,
  .nav-menu > a:hover {
    color: #ffd87a !important;
    background: none !important;
  }

  /* 手機版下拉選單 */
  .nav-product-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-product {
    font-size: 1.5rem;
    padding: 0;
  }

  .nav-product:hover,
  .nav-product.active {
    background: none;
    color: #ffd87a;
  }

  /* 手機版下拉按鍵與箭頭 */
  .nav-product-mobile-toggle-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
  }

  .nav-product-mobile-text {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
  }
  
  .nav-product-mobile-text.active {
    color: #ffd87a !important;
  }

  .nav-product-mobile-arrow {
    font-size: 1.5rem;
    color: #ffd87a;
    user-select: none;
    cursor: pointer;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    z-index: auto;
    width: 100%;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-menu.show {
    display: flex;
  }

  .dropdown-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }

  .dropdown-content div {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    background: none !important;
    border-bottom: none !important;
  }

  .dropdown-content div.active,
  .dropdown-content div:hover {
    color: #ffd87a !important;
    background: none !important;
    font-weight: bold;
    padding-left: 0;
  }

  /* 手機版語言選單 */
  .lang-dropdown-wrapper {
    margin-left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lang-btn {
    font-size: 1.5rem;
    padding: 0;
    margin: 10px 0;
  }

  .lang-dropdown-menu {
    position: static;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .lang-dropdown-menu.show {
    display: flex;
  }

  .lang-option {
    text-align: center;
    width: 100%;
    padding: 10px 0;
    font-size: 1.2rem;
  }

  .lang-option.active {
    background: none !important;
  }

  /* 主視覺 RWD */
  .main-title,
  .main-title-large {
    font-size: 1.3rem;
    margin-bottom: 32px;
  }

  .main-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  /* 產品清單卡片 RWD */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .product-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 12px 8px;
  }

  /* 機器銷售頁 RWD */
  .machine-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .machine-desc {
    font-size: 0.92rem;
    padding-left: 24px;
    padding-right: 24px;
  }

  .machine-flex-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .machine-img-block {
    margin: 0 auto;
  }

  .machine-img-tip {
    font-size: 0.95rem;
  }

  .machine-features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .machine-feature-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: auto;
    padding: 16px;
  }

  .machine-feature-title {
    font-size: 1rem;
  }

  .machine-feature-desc {
    font-size: 0.9rem;
  }

  /* 挖礦獎勵 RWD */
  .mining-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .mining-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .mining-card {
    min-width: 0;
    max-width: 100%;
    width: 100% !important;
    font-size: 0.95rem;
    padding: 12px;
    min-height: auto;
  }

  .mining-card-title {
    font-size: 1rem;
  }

  .mining-card-desc {
    font-size: 0.95rem;
  }

  .mining-divider {
    max-width: 90vw;
  }

  /* 託管服務 RWD */
  .hosting-title {
    font-size: 2rem;
  }

  .hosting-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hosting-img-block {
    margin: 0 auto;
  }

  .hosting-img {
    width: 100%;
    max-width: 92vw;
    height: auto;
  }

  .hosting-card {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    padding: 16px;
    min-width: 0;
  }

  .hosting-card ul {
    padding-left: 20px;
    padding-right: 0;
  }

  .hosting-adv-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .hosting-adv-main {
    margin-bottom: 8px;
  }

  .hosting-adv-desc {
    padding-top: 10px;
  }

  /* 算力/客製化 AI RWD */
  .compute-title,
  .customai-title {
    font-size: 1.8rem !important;
    padding: 0 18px;
    box-sizing: border-box;
    margin-bottom: 32px;
  }

  .compute-desc,
  .customai-desc {
    font-size: 1rem !important;
    padding: 0 18px;
    box-sizing: border-box;
    margin-bottom: 24px;
  }

  /* 聯絡我們 RWD */
  .contact-title {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .contact-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 98vw;
    width: 100%;
    align-items: stretch;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .contact-info {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    gap: 12px;
  }

  .contact-block,
  .contact-qr {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .contact-qr {
    max-width: 100%;
    width: 100%;
    margin-top: 0;
  }

  .contact-qr-img {
    width: 120px;
    height: 120px;
  }

  .contact-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-self: stretch;
    padding: 14px 16px;
  }

  /* 頁尾 RWD */
  .footer {
    font-size: 0.9rem;
    padding: 10px 0 8px 0;
  }
}

@media (min-width: 701px) {
  .nav-menu .close-btn {
    display: none !important;
  }

  .desktop-only {
    display: block !important;
  }

  .mobile-only {
    display: none !important;
  }
}
