/* 全域樣式 */
:root {
  --primary-color: #1a5276;
  --secondary-color: #27ae60;
  --accent-color: #e67e22;
  --background-color: #f5f5f5;
  --text-color: #333333;
  --light-text: #ffffff;
  --border-color: #dddddd;
  --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans TC', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 導航欄 */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  color: var(--light-text);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 1.5rem;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* 頁首 */
.hero {
  background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.8)), url('../images/land-investment.jpg');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

.btn-primary:hover {
  background-color: #219653;
  transform: translateY(-2px);
}

/* 內容區塊 */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.section-title h2 {
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

/* 卡片樣式 */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-text {
  margin-bottom: 1.5rem;
}

/* 網格系統 */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4 {
  width: 33.333%;
  padding: 0 15px;
}

.col-md-6 {
  width: 50%;
  padding: 0 15px;
}

/* 表格樣式 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.table th, .table td {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.table th {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.table tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* 折疊面板 */
.accordion {
  margin-bottom: 2rem;
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.accordion-header {
  padding: 1rem;
  background-color: #f9f9f9;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-content {
  padding: 1rem;
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* 頁尾 */
.footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 浮水印 */
.watermark {
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.5;
  font-size: 0.8rem;
  color: var(--primary-color);
  pointer-events: none;
  z-index: 999;
}

.watermark-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  width: 50%;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }
  
  .navbar-brand {
    margin-bottom: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .col-md-4, .col-md-6 {
    width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

/* 投資計算器樣式 */
.calculator {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.calculator-title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

.calculator-result {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

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

.animate {
  animation: fadeIn 1s ease-out;
}
