/* Import Tailwind CSS */
@import url('https://cdn.tailwindcss.com');

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* Custom CSS Variables */
:root {
  /* Colors */
  --primary-color: #2C2C2C;
  --secondary-color: #F8F9FA;
  --accent-color: #A08B76;
  
  /* Font Families */
  --font-chinese: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-english: 'Helvetica Neue', 'Arial', sans-serif;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-chinese), var(--font-english), sans-serif;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.text-accent {
  color: var(--accent-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.bg-secondary {
  background-color: var(--secondary-color);
}

.bg-accent {
  background-color: var(--accent-color);
}

/* Custom Components */
.nav-transparent {
  background-color: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(10px);
}

.carousel-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.image-hover {
  transition: transform 0.3s ease;
}

.image-hover:hover {
  transform: scale(1.05);
}

/* Footer */
footer {
  border-top: 1px solid rgba(44, 44, 44, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
}

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

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

/* Tailwind Custom Configuration */
@layer utilities {
  .text-balance {
    text-wrap: balance;
  }
}