/* ============================================================
   主頁專用樣式
   ============================================================ */

/* ============================================================
   英雄區塊
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #0d0a04 0%, #1a1408 40%, #2a1f0a 70%, #1a1408 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(208, 188, 101, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(173, 131, 60, 0.06) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d0bc65' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(135deg, rgba(13, 10, 4, 0.55) 0%, rgba(26, 20, 8, 0.45) 40%, rgba(42, 31, 10, 0.35) 70%, rgba(26, 20, 8, 0.45) 100%), url("/images/home-slide-01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroOverlaySlide 12s infinite;
  z-index: 1;
}

@keyframes heroOverlaySlide {
  0%,
  33.333% {
    background-image: linear-gradient(135deg, rgba(13, 10, 4, 0.55) 0%, rgba(26, 20, 8, 0.45) 40%, rgba(42, 31, 10, 0.35) 70%, rgba(26, 20, 8, 0.45) 100%), url("/images/home-slide-01.jpg");
  }
  33.334%,
  66.666% {
    background-image: linear-gradient(135deg, rgba(13, 10, 4, 0.55) 0%, rgba(26, 20, 8, 0.45) 40%, rgba(42, 31, 10, 0.35) 70%, rgba(26, 20, 8, 0.45) 100%), url("/images/home-slide-02.jpg");
  }
  66.667%,
  100% {
    background-image: linear-gradient(135deg, rgba(13, 10, 4, 0.55) 0%, rgba(26, 20, 8, 0.45) 40%, rgba(42, 31, 10, 0.35) 70%, rgba(26, 20, 8, 0.45) 100%), url("/images/home-slide-03.jpg");
  }
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  padding: 20px 0;
}

.hero-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-1);
  text-transform: uppercase;
  font-family: 'Noto Sans HK', sans-serif;
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 2px;
}

.hero-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 200;
  font-size: 64px;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), transparent);
  margin-top: 20px;
}

.hero-desc {
  font-size: 18px;
  color: rgba(228, 226, 223, 0.75);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-actions .btn-gold {
  padding: 14px 32px;
  font-size: 16px;
}

.hero-actions .btn-gold-outline {
  padding: 14px 32px;
  font-size: 16px;
  color: rgba(228, 226, 223, 0.9) !important;
  border-color: rgba(208, 188, 101, 0.5);
}

.hero-actions .btn-gold-outline:hover {
  color: #fff !important;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat-item {
  padding: 0 24px;
  text-align: center;
}

.hero-stat-item:first-child {
  padding-left: 0;
}

.hero-stat-num {
  display: block;
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 32px;
  color: var(--gold-1);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  display: block;
  font-size: 13px;
  color: rgba(228, 226, 223, 0.5);
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(208, 188, 101, 0.2);
}

/* 英雄卡片預覽 */
.hero-card-preview {
  position: relative;
  padding: 40px 20px;
}

.preview-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(208, 188, 101, 0.25);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.preview-card:hover {
  border-color: rgba(208, 188, 101, 0.5);
  background: rgba(255, 255, 255, 0.09);
}

.preview-card.floating {
  margin-left: 0;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.preview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.preview-badge-risk {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 500;
}

.preview-badge-risk.low { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.preview-badge-risk.mid { background: rgba(234, 179, 8, 0.2); color: #fbbf24; }
.preview-badge-risk.high { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.preview-badge-type {
  font-size: 12px;
  color: rgba(228, 226, 223, 0.5);
}

.preview-card-body h4 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 18px;
  color: #fff;
  margin: 0 0 4px;
}

.preview-card-body p {
  font-size: 13px;
  color: rgba(228, 226, 223, 0.5);
  margin-bottom: 14px;
}

.preview-stats {
  display: flex;
  gap: 20px;
}

.preview-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ps-label {
  font-size: 12px;
  color: rgba(228, 226, 223, 0.4);
}

.ps-value {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.ps-value.highlight {
  color: var(--gold-1);
}

/* 滾動提示 */
.hero-scroll-hint {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(228, 226, 223, 0.4);
  font-size: 13px;
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-hint i {
  display: block;
  font-size: 20px;
  margin-top: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   優勢區塊
   ============================================================ */
.advantage-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-gold);
  background: #fff;
  transition: all 0.3s ease;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.advantage-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.advantage-card:hover {
  border-color: var(--gold-1);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.advantage-card.visible:hover {
  transform: translateY(-4px);
}

.adv-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(208, 188, 101, 0.15), rgba(173, 131, 60, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(208, 188, 101, 0.3);
}

.adv-icon i {
  font-size: 26px;
  color: var(--gold-2);
}

.advantage-card h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   項目篩選
   ============================================================ */
.filter-bar {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
}

.filter-bar .row {
  margin: 0 -8px;
}

.filter-bar .col-md-4,
.filter-bar .col-md-3,
.filter-bar .col-md-2,
.filter-bar .col-sm-4,
.filter-bar .col-sm-12 {
  padding: 0 8px;
}

.filter-input,
.filter-select {
  border: 1px solid rgba(208, 188, 101, 0.3) !important;
  border-radius: 4px !important;
  height: 42px !important;
  font-family: 'Noto Sans HK', sans-serif !important;
  font-size: 15px !important;
  color: var(--text-dark) !important;
  transition: border-color 0.3s ease !important;
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--gold-2) !important;
  box-shadow: 0 0 0 3px rgba(173, 131, 60, 0.1) !important;
  outline: none !important;
}

@media (max-width: 767px) {
  .filter-bar .col-sm-12,
  .filter-bar .col-sm-4 {
    margin-bottom: 10px;
  }
}

/* ============================================================
   物業卡片增強
   ============================================================ */
.project-item {
  margin-bottom: 24px;
}

.card-invest-range {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.invest-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.invest-tiers {
  display: flex;
  gap: 6px;
}

.tier {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(208, 188, 101, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(208, 188, 101, 0.2);
}

.tier.active {
  background: rgba(173, 131, 60, 0.15);
  color: var(--gold-2);
  border-color: rgba(173, 131, 60, 0.4);
  font-weight: 500;
}

.btn-card-action {
  background: transparent;
  color: var(--gold-2) !important;
  border: 1px solid rgba(173, 131, 60, 0.4) !important;
  border-radius: 4px !important;
  font-family: 'Noto Sans HK', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  transition: all 0.3s ease !important;
}

.btn-card-action:hover {
  background: var(--gold-2) !important;
  color: #fff !important;
  border-color: var(--gold-2) !important;
}

/* VIP 卡片 */
.card-vip {
  border-color: rgba(208, 188, 101, 0.4) !important;
  background: linear-gradient(135deg, #fffdf7, #fff) !important;
}

.badge-vip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.btn-card-vip {
  background: linear-gradient(135deg, rgba(208, 188, 101, 0.15), rgba(173, 131, 60, 0.1)) !important;
  color: var(--gold-2) !important;
  border: 1px solid rgba(208, 188, 101, 0.4) !important;
  border-radius: 4px !important;
  font-family: 'Noto Sans HK', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  transition: all 0.3s ease !important;
}

.btn-card-vip:hover {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4)) !important;
  color: #fff !important;
}

/* ============================================================
   投資試算器
   ============================================================ */
.calculator-card {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.calc-header {
  background: linear-gradient(135deg, #1a1408, #2a1f0a);
  padding: 20px 24px;
}

.calc-header h4 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--gold-1);
  margin: 0 0 12px;
}

.calc-project-select {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(208, 188, 101, 0.3) !important;
  color: rgba(228, 226, 223, 0.9) !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  height: 38px !important;
}

.calc-body {
  padding: 24px;
}

.calc-body .form-group label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}

.calc-body .form-control {
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 4px;
  height: 42px;
  font-size: 15px;
  color: var(--text-dark);
}

.calc-body .form-control:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(173, 131, 60, 0.1);
}

.calc-results {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.calc-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(208, 188, 101, 0.15);
}

.calc-result-item:last-child {
  border-bottom: none;
}

.calc-result-item.highlight {
  background: rgba(208, 188, 101, 0.08);
  margin: 0 -16px;
  padding: 10px 16px;
}

.cr-label {
  font-size: 14px;
  color: var(--text-light);
}

.cr-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}

.calc-result-item.highlight .cr-value {
  color: var(--gold-2);
  font-size: 20px;
}

.calc-tiers {
  margin-top: 16px;
}

.tier-label {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.tier-buttons {
  display: flex;
  gap: 8px;
}

.tier-btn {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--gold-2);
  font-size: 14px;
  font-family: 'Noto Sans HK', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tier-btn:hover,
.tier-btn.active {
  background: var(--gold-2);
  color: #fff;
  border-color: var(--gold-2);
}

.calc-disclaimer {
  background: rgba(208, 188, 101, 0.08);
  border: 1px solid rgba(208, 188, 101, 0.2);
  border-left: 3px solid var(--gold-2);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
}

.calc-disclaimer i {
  color: var(--gold-2);
  margin-top: 2px;
  flex-shrink: 0;
}

.calc-disclaimer span {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================================
   會員制度
   ============================================================ */
.membership-row {
  margin-top: 10px;
}

.member-tier-card {
  background: #fff;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
}

.member-tier-card:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

.member-tier-card.featured {
  border-color: var(--gold-2);
  box-shadow: 0 8px 32px rgba(173, 131, 60, 0.2);
}

.mtc-badge {
  position: absolute;
  top: 16px;
  right: -30px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}

.mtc-header {
  padding: 28px 24px;
  text-align: center;
}

.mtc-header.non-member {
  background: linear-gradient(135deg, #f5f3ef, #ede9e0);
}

.mtc-header.level-1 {
  background: linear-gradient(135deg, #2a1f0a, #1a1408);
}

.mtc-header.level-2 {
  background: linear-gradient(135deg, #1a1408, #3a2a0a);
}

.mtc-header.partner {
  background: linear-gradient(135deg, #0d0a04, #1a1408);
}

.mtc-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
}

.mtc-header.non-member .mtc-icon {
  background: rgba(160, 144, 112, 0.2);
  border: 1px solid rgba(160, 144, 112, 0.3);
  color: var(--text-muted);
}

.mtc-header.level-1 .mtc-icon,
.mtc-header.level-2 .mtc-icon,
.mtc-header.partner .mtc-icon {
  background: rgba(208, 188, 101, 0.15);
  border: 1px solid rgba(208, 188, 101, 0.3);
  color: var(--gold-1);
}

.mtc-header h4 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 22px;
  margin: 0 0 10px;
}

.mtc-header.non-member h4 { color: var(--text-mid); }
.mtc-header.level-1 h4,
.mtc-header.level-2 h4,
.mtc-header.partner h4 { color: #fff; }

.mtc-price {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 26px;
  margin-bottom: 4px;
}

.mtc-header.non-member .mtc-price { color: var(--text-mid); }
.mtc-header.level-1 .mtc-price,
.mtc-header.level-2 .mtc-price,
.mtc-header.partner .mtc-price { color: var(--gold-1); }

.mtc-price span {
  font-size: 14px;
  opacity: 0.7;
}

.mtc-promo {
  font-size: 13px;
  opacity: 0.65;
}

.mtc-header.non-member .mtc-promo { color: var(--text-muted); }
.mtc-header.level-1 .mtc-promo,
.mtc-header.level-2 .mtc-promo,
.mtc-header.partner .mtc-promo { color: rgba(228, 226, 223, 0.6); }

.mtc-body {
  padding: 24px;
}

.mtc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.mtc-features li {
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(208, 188, 101, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mtc-features li:last-child {
  border-bottom: none;
}

.mtc-features li.available {
  color: var(--text-dark);
}

.mtc-features li.available i {
  color: #22c55e;
}

.mtc-features li.unavailable {
  color: var(--text-muted);
}

.mtc-features li.unavailable i {
  color: #ef4444;
}

/* ============================================================
   投資流程
   ============================================================ */
.process-row {
  margin-top: 20px;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 20px;
  position: relative;
}

.process-num {
  font-family: 'Noto Serif HK', serif;
  font-weight: 200;
  font-size: 56px;
  color: rgba(208, 188, 101, 0.15);
  line-height: 1;
  margin-bottom: -10px;
}

.process-icon {
  width: 64px;
  height: 64px;
  background: rgba(208, 188, 101, 0.1);
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--gold-1);
  position: relative;
  z-index: 1;
}

.process-step h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 15px;
  color: rgba(228, 226, 223, 0.6);
  line-height: 1.7;
}

/* ============================================================
   最新資訊預覽
   ============================================================ */
.news-card {
  padding: 24px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.news-card:hover {
  border-color: var(--gold-2);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

.news-date {
  font-size: 13px;
  color: var(--gold-2);
  margin-bottom: 10px;
  font-weight: 500;
}

.news-card h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 10px;
}

.news-card h5 a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card h5 a:hover {
  color: var(--gold-2);
}

.news-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  font-size: 14px;
  color: var(--gold-2);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-more:hover {
  color: var(--gold-1);
}

/* ============================================================
   響應式
   ============================================================ */
@media (max-width: 991px) {
  .hero-title {
    font-size: 48px;
  }

  .hero-stat-item {
    padding: 0 16px;
  }

  .hero-stat-num {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-stats {
    gap: 0;
  }

  .hero-stat-item {
    padding: 0 12px;
  }

  .hero-stat-num {
    font-size: 22px;
  }

  .hero-stat-divider {
    height: 30px;
  }

  .tier-buttons {
    flex-direction: column;
  }

  .hero-scroll-hint {
    display: none;
  }
}
