/* 
  L'Archive Céleste - 星宸典藏・天賞工坊
  品牌色系與全局樣式
  設計語彙：極致奢華、光影對比、精密幾何排版、經典襯線體
*/

/* ==================== 色系定義 ==================== */
:root {
  --color-black: #0A0A0A;           /* 曜石極黑 */
  --color-gold: #D4AF37;            /* 帝王古金 */
  --color-midnight: #1A1F2C;        /* 午夜深藍 */
  --color-light-gray: #F5F5F5;      /* 淺灰 */
  --color-dark-gray: #2A2A2A;       /* 深灰 */
  --color-accent: #E8D5B7;          /* 溫暖米色 */
}

/* ==================== 字體導入 ==================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Lora:wght@400;500;600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==================== 全局基礎樣式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  background-color: var(--color-black);
  color: #E0E0E0;
  line-height: 1.6;
  letter-spacing: 0.5px;
  overflow-x: hidden;
}

/* ==================== 排版系統 ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: #FFFFFF;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  letter-spacing: 1.5px;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #D0D0D0;
  line-height: 1.8;
}

.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

/* ==================== 按鈕樣式 ==================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-gold);
  background-color: transparent;
  color: var(--color-gold);
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background-color: var(--color-gold);
  color: var(--color-black);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-black);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

/* ==================== 容器與佈局 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--color-black);
}

.section-midnight {
  background-color: var(--color-midnight);
}

/* ==================== 導航欄 ==================== */
.navbar {
  background-color: rgba(10, 10, 10, 0.95);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  backdrop-filter: blur(10px);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand::before {
  content: '◆';
  font-size: 1.5rem;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-menu a {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #D0D0D0;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.navbar-menu a:hover {
  color: var(--color-gold);
}

.navbar-menu a:hover::after {
  width: 100%;
}

/* ==================== 頁腳 ==================== */
footer {
  background-color: var(--color-midnight);
  padding: 3rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  margin-top: 4rem;
}

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

.footer-section h4 {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
  font-size: 0.9rem;
  color: #B0B0B0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  color: #808080;
  font-size: 0.85rem;
}

/* ==================== 視差效果 ==================== */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* ==================== 光影效果 ==================== */
.glow-text {
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.glow-box {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ==================== 卡片樣式 ==================== */
.card {
  background-color: rgba(26, 31, 44, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2rem;
  transition: all 0.4s ease;
  cursor: pointer;
}

.card:hover {
  background-color: rgba(26, 31, 44, 0.8);
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
  transform: translateY(-5px);
}

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

  h2 {
    font-size: 1.8rem;
  }

  .navbar-menu {
    gap: 1rem;
    font-size: 0.75rem;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .navbar-menu {
    display: none;
  }

  p {
    font-size: 0.9rem;
  }
}
