/* ============================================================
   Tickcash 房產投資平台 - 主要樣式
   ============================================================ */

/* Google Fonts - Noto Serif HK & Noto Sans HK */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+HK:wght@300;400;500;700&family=Noto+Serif+HK:wght@200;300;400;600&display=swap');

/* ============================================================
   CSS 變量
   ============================================================ */
:root {
  --gold-1: #d0bc65;
  --gold-2: #ad833c;
  --gold-3: #d2ba68;
  --gold-4: #a87f3a;
  --gold-5: #cdbb73;
  --gold-light: #e4e2df;
  --gold-dark: #7a5c1e;
  --gold-deeper: #5a4010;
  --bg-dark: #1a1408;
  --bg-mid: #2a1f0a;
  --bg-section: #f9f6ef;
  --bg-card: #ffffff;
  --text-dark: #1a1408;
  --text-mid: #3d2e0e;
  --text-light: #7a6a4a;
  --text-muted: #a09070;
  --border-gold: rgba(208, 188, 101, 0.3);
  --shadow-gold: 0 4px 24px rgba(168, 127, 58, 0.15);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.08);
}

/* ============================================================
   基礎設定
   ============================================================ */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans HK', 'Source Han Sans HK', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 標題字體 - 思源宋體細體 */
h1, h2, h3, h4, h5, h6,
.display-title,
.section-title,
.hero-title {
  font-family: 'Noto Serif HK', 'Source Han Serif HK', serif;
  font-weight: 300;
  line-height: 1.3;
}

h1 { font-size: 60px; }
h2 { font-size: 48px; }
h3 { font-size: 36px; }
h4 { font-size: 28px; }
h5 { font-size: 22px; }
h6 { font-size: 20px; }

@media (max-width: 768px) {
  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  h3 { font-size: 26px; }
  h4 { font-size: 22px; }
  h5 { font-size: 20px; }
}

p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 1em;
}

a {
  color: var(--gold-2);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-1);
  text-decoration: none;
}

/* ============================================================
   導航欄
   ============================================================ */
.navbar-tickcash {
  background: linear-gradient(135deg, #1a1408 0%, #2a1f0a 50%, #1a1408 100%);
  border-bottom: 1px solid var(--gold-2);
  padding: 0;
  min-height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.navbar-tickcash .navbar-brand {
  padding: 10px 15px;
  height: 70px;
  display: flex;
  align-items: center;
}

.navbar-tickcash .navbar-brand img {
  height: 42px;
  width: auto;
}

.navbar-tickcash .navbar-nav > li > a {
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--gold-light) !important;
  padding: 25px 16px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease, background 0.3s ease;
  position: relative;
}

.navbar-tickcash .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-1);
  transition: width 0.3s ease;
}

.navbar-tickcash .navbar-nav > li > a:hover::after,
.navbar-tickcash .navbar-nav > li.active > a::after {
  width: 80%;
}

.navbar-tickcash .navbar-nav > li > a:hover {
  color: var(--gold-1) !important;
  background: transparent !important;
}

.navbar-tickcash .navbar-nav > li.active > a {
  color: var(--gold-1) !important;
  background: transparent !important;
}

/* 會員按鈕 */
.navbar-tickcash .nav-member-btn > a {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4)) !important;
  color: #fff !important;
  border-radius: 4px !important;
  margin: 15px 8px !important;
  padding: 8px 20px !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em;
  transition: all 0.3s ease !important;
}

.navbar-tickcash .nav-member-btn > a:hover {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3)) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(168, 127, 58, 0.4) !important;
}

.navbar-tickcash .nav-member-btn > a::after {
  display: none !important;
}

/* 漢堡選單 */
.navbar-tickcash .navbar-toggle {
  border-color: var(--gold-2);
  margin-top: 18px;
}

.navbar-tickcash .navbar-toggle .icon-bar {
  background-color: var(--gold-1);
}

.navbar-tickcash .navbar-toggle:hover,
.navbar-tickcash .navbar-toggle:focus {
  background-color: rgba(208, 188, 101, 0.1);
}

/* 移動端選單 */
@media (max-width: 767px) {
  .navbar-tickcash .navbar-collapse {
    background: #1a1408;
    border-top: 1px solid var(--border-gold);
  }

  .navbar-tickcash .navbar-nav > li > a {
    padding: 14px 20px;
  }

  .navbar-tickcash .navbar-nav > li > a::after {
    display: none;
  }

  .navbar-tickcash .nav-member-btn > a {
    margin: 8px 15px !important;
    display: block;
    text-align: center;
  }
}

/* 頁面主內容 padding-top (因為fixed navbar) */
.page-content {
  padding-top: 70px;
}

/* ============================================================
   頁腳
   ============================================================ */
.footer-tickcash {
  background: linear-gradient(135deg, #1a1408 0%, #0d0a04 100%);
  color: var(--gold-light);
  padding: 60px 0 0;
  border-top: 1px solid var(--gold-2);
}

.footer-tickcash .footer-logo img {
  height: 40px;
  margin-bottom: 20px;
  filter: brightness(0.9);
}

.footer-tickcash .footer-desc {
  font-size: 15px;
  color: rgba(228, 226, 223, 0.6);
  line-height: 1.8;
}

.footer-tickcash h5 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 18px;
  color: var(--gold-1);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-gold);
}

.footer-tickcash ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-tickcash ul li {
  margin-bottom: 10px;
}

.footer-tickcash ul li a {
  color: rgba(228, 226, 223, 0.7);
  font-size: 15px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-tickcash ul li a:hover {
  color: var(--gold-1);
}

.footer-tickcash .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(228, 226, 223, 0.7);
  font-size: 15px;
}

.footer-tickcash .footer-contact-item i {
  color: var(--gold-1);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-tickcash .footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(208, 188, 101, 0.15);
  text-align: center;
}

.footer-tickcash .footer-bottom p {
  color: rgba(228, 226, 223, 0.4);
  font-size: 13px;
  margin: 0;
}

.footer-tickcash .footer-disclaimer {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 30px;
  font-size: 13px;
  color: rgba(228, 226, 223, 0.45);
  line-height: 1.7;
}

/* ============================================================
   通用元件
   ============================================================ */

/* 頁面橫幅 */
.page-banner {
  background: linear-gradient(135deg, #1a1408 0%, #2a1f0a 60%, #1a1408 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d0bc65' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.page-banner .banner-content {
  position: relative;
  z-index: 1;
}

.page-banner .banner-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold-1);
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Noto Sans HK', sans-serif;
}

.page-banner h1 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 200;
  color: #ffffff;
  margin: 0 0 16px;
}

.page-banner p {
  color: rgba(228, 226, 223, 0.75);
  font-size: 17px;
  max-width: 600px;
}

/* 金色分隔線 */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-1));
  margin: 20px 0;
}

.gold-divider.center {
  margin: 20px auto;
}

/* 區塊標題 */
.section-header {
  margin-bottom: 50px;
}

.section-header .section-tag {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold-2);
  text-transform: uppercase;
  font-family: 'Noto Sans HK', sans-serif;
  display: block;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  color: var(--text-dark);
  margin: 0 0 16px;
}

.section-header p {
  color: var(--text-light);
  font-size: 17px;
  max-width: 600px;
}

.section-header.center {
  text-align: center;
}

.section-header.center p {
  margin: 0 auto;
}

/* 按鈕樣式 */
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  padding: 12px 28px;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-3));
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 127, 58, 0.4);
  text-decoration: none;
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-2) !important;
  border: 1px solid var(--gold-2);
  border-radius: 4px;
  padding: 12px 28px;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-gold-outline:hover {
  background: var(--gold-2);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 127, 58, 0.3);
  text-decoration: none;
}

.btn-gold-light {
  background: rgba(208, 188, 101, 0.12);
  color: var(--gold-2) !important;
  border: 1px solid rgba(208, 188, 101, 0.4);
  border-radius: 4px;
  padding: 10px 24px;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.btn-gold-light:hover {
  background: var(--gold-2);
  color: #ffffff !important;
  text-decoration: none;
}

/* 物業卡片 */
.property-card {
  background: #ffffff;
  border: 1px solid rgba(208, 188, 101, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
  height: 100%;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(168, 127, 58, 0.2);
  border-color: var(--gold-3);
}

.property-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.property-card .card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.property-card:hover .card-img-wrap img {
  transform: scale(1.05);
}

.property-card .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.badge-risk-low {
  background: rgba(34, 197, 94, 0.9);
  color: #fff;
}

.badge-risk-mid {
  background: rgba(234, 179, 8, 0.9);
  color: #fff;
}

.badge-risk-high {
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.badge-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(26, 20, 8, 0.75);
  color: var(--gold-1);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}

.property-card .card-body {
  padding: 20px;
}

.property-card .card-title {
  font-family: 'Noto Serif HK', serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-dark);
  margin: 0 0 4px;
}

.property-card .card-location {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.property-card .card-location i {
  color: var(--gold-2);
  margin-right: 4px;
}

.property-card .card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bg-section);
  border-radius: 6px;
}

.property-card .stat-item .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.property-card .stat-item .stat-value {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}

.property-card .stat-item .stat-value.highlight {
  color: var(--gold-2);
}

.property-card .card-footer-area {
  padding: 0 20px 20px;
}

/* 統計數字卡片 */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--gold-1);
  box-shadow: var(--shadow-gold);
}

.stat-card .stat-number {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 42px;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 15px;
  color: var(--text-light);
}

/* 會員等級徽章 */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

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

.member-badge.level-1 {
  background: rgba(173, 131, 60, 0.15);
  color: var(--gold-2);
  border: 1px solid rgba(173, 131, 60, 0.4);
}

.member-badge.level-2 {
  background: linear-gradient(135deg, rgba(208, 188, 101, 0.2), rgba(173, 131, 60, 0.2));
  color: var(--gold-dark);
  border: 1px solid var(--gold-3);
}

/* 鎖定內容遮罩 */
.content-locked {
  position: relative;
  overflow: hidden;
}

.content-locked .lock-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(249, 246, 239, 0.85) 40%, rgba(249, 246, 239, 0.98) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  z-index: 10;
}

.content-locked .lock-message {
  text-align: center;
  padding: 20px;
}

.content-locked .lock-message i {
  font-size: 28px;
  color: var(--gold-2);
  display: block;
  margin-bottom: 10px;
}

.content-locked .lock-message p {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

/* 表單樣式 */
.form-tickcash .form-control {
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-radius: 4px;
  padding: 12px 16px;
  font-family: 'Noto Sans HK', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: #ffffff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: auto;
}

.form-tickcash .form-control:focus {
  border-color: var(--gold-2);
  box-shadow: 0 0 0 3px rgba(173, 131, 60, 0.15);
  outline: none;
}

.form-tickcash label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
}

/* 區塊背景 */
.section-light {
  background: var(--bg-section);
  padding: 80px 0;
}

.section-white {
  background: #ffffff;
  padding: 80px 0;
}

.section-dark {
  background: linear-gradient(135deg, #1a1408 0%, #2a1f0a 100%);
  padding: 80px 0;
}

/* 金色邊框卡片 */
.gold-card {
  background: #ffffff;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.gold-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-1), var(--gold-3));
}

/* 標籤 */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

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

/* 分頁麵包屑 */
.breadcrumb-tickcash {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-tickcash > li + li::before {
  color: var(--gold-2);
  content: " › ";
}

.breadcrumb-tickcash > li a {
  color: rgba(228, 226, 223, 0.6);
}

.breadcrumb-tickcash > li.active {
  color: var(--gold-1);
}

/* 回報率顯示 */
.return-rate {
  font-family: 'Noto Serif HK', serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--gold-2);
  line-height: 1;
}

.return-rate .unit {
  font-size: 20px;
}

/* 進度條 */
.progress-gold {
  height: 8px;
  background: rgba(208, 188, 101, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.progress-gold .progress-bar {
  background: linear-gradient(90deg, var(--gold-2), var(--gold-1));
  border-radius: 4px;
}

/* 通知提示 */
.alert-gold {
  background: rgba(208, 188, 101, 0.1);
  border: 1px solid rgba(208, 188, 101, 0.3);
  border-left: 4px solid var(--gold-2);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--text-mid);
  font-size: 15px;
}

/* 動畫 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 滾動條樣式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-2);
}

/* 響應式調整 */
@media (max-width: 991px) {
  .section-light,
  .section-white,
  .section-dark {
    padding: 60px 0;
  }
}

@media (max-width: 767px) {
  .section-light,
  .section-white,
  .section-dark {
    padding: 50px 0;
  }

  .page-banner {
    padding: 60px 0 40px;
  }

  .section-header {
    margin-bottom: 35px;
  }
}
