/* 深海王座 - 液態極簡主義設計系統 */
/* 核心色系：海溝深邃藍、螢光脈衝青、耐壓鈦金、珍珠幻彩白 */

:root {
  --abyssal-deep-blue: #001B2E;
  --bioluminescent-cyan: #00F5FF;
  --pressure-titanium: #A67C00;
  --pearl-white: #E8F1F2;
  --deep-teal: #0A2F47;
  --dark-teal: #003D52;
  --border-teal: #1A4D63;
  --muted-cyan: #A0C4D4;
  --light-cyan: #00D9FF;
  --light-blue: #00B8E6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', 'Georgia', serif;
  background-color: var(--abyssal-deep-blue);
  color: var(--pearl-white);
  line-height: 1.6;
  background-attachment: fixed;
}

/* 字體設定 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 3.5rem;
  color: var(--bioluminescent-cyan);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

h2 {
  font-size: 2.5rem;
  color: var(--light-cyan);
}

h3 {
  font-size: 1.75rem;
  color: var(--light-blue);
}

/* 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* 導航欄 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, var(--abyssal-deep-blue), rgba(0, 27, 46, 0.8));
  border-bottom: 1px solid var(--border-teal);
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bioluminescent-cyan);
  text-decoration: none;
}

.navbar-brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bioluminescent-cyan), var(--light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.75rem;
  color: var(--abyssal-deep-blue);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--pearl-white);
  text-decoration: none;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

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

.nav-link.active {
  color: var(--bioluminescent-cyan);
  border-bottom: 2px solid var(--bioluminescent-cyan);
}

.btn-cta {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--bioluminescent-cyan), var(--light-blue));
  color: var(--abyssal-deep-blue);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  transform: translateY(-2px);
}

/* 頁腳 */
footer {
  border-top: 1px solid var(--border-teal);
  background: linear-gradient(to top, var(--abyssal-deep-blue), rgba(0, 27, 46, 0.8));
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--bioluminescent-cyan);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section p, .footer-section a {
  color: var(--muted-cyan);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-teal);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--border-teal);
}

/* 主要內容區域 */
main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

section {
  padding: 3rem 0;
}

section.hero {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-teal);
}

/* 深海沉浸式效果 */
.abyssal-gradient {
  background: linear-gradient(135deg, var(--abyssal-deep-blue) 0%, var(--deep-teal) 50%, var(--dark-teal) 100%);
}

.bioluminescent-glow {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.1);
}

.bioluminescent-text {
  color: var(--bioluminescent-cyan);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* 流體粒子背景 */
.fluid-particles {
  position: relative;
  overflow: hidden;
}

.fluid-particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 168, 204, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 213, 255, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

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

/* 聲納脈衝效果 */
.sonar-pulse {
  position: relative;
}

.sonar-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.3) 0%, transparent 70%);
  animation: sonar 2s ease-out infinite;
}

@keyframes sonar {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(0, 245, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 245, 255, 0);
  }
}

/* 受壓抖動效果 */
.pressure-shake {
  animation: pressureShake 0.1s ease-in-out infinite;
}

@keyframes pressureShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-1px);
  }
  75% {
    transform: translateX(1px);
  }
}

/* 深海按鈕 */
.abyss-button {
  position: relative;
  padding: 0.75rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--bioluminescent-cyan), var(--light-blue));
  color: var(--abyssal-deep-blue);
  border: 2px solid var(--bioluminescent-cyan);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.abyss-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.abyss-button:hover {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.5), inset 0 0 20px rgba(0, 245, 255, 0.1);
  transform: translateY(-2px);
}

.abyss-button:hover::before {
  left: 100%;
}

/* 深海卡片 */
.abyss-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: rgba(10, 47, 71, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.abyss-card:hover {
  background: rgba(10, 47, 71, 0.8);
  border-color: rgba(0, 245, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

/* 氣泡上升動畫 */
@keyframes bubbleRise {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1);
  }
}

.bubble-animation {
  animation: bubbleRise 0.6s ease-out forwards;
}

/* 網格布局 */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* 表單樣式 */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--light-blue);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--deep-teal);
  border: 1px solid var(--border-teal);
  border-radius: 0.25rem;
  color: var(--pearl-white);
  font-family: 'Lora', serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--bioluminescent-cyan);
}

/* 工具類 */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.text-center { text-align: center; }
.text-muted { color: var(--muted-cyan); }
.text-highlight { color: var(--bioluminescent-cyan); }

/* 響應式設計 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .navbar-nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  section {
    padding: 2rem 0;
  }

  section.hero {
    padding: 3rem 0;
  }
}

/* 過渡效果 */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
