/* ============================================
   SimpleIsle · Global Styles
   反内卷 · 低欲望 · 极简主义
   ============================================ */

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

:root {
  /* Earthy Muted Palette */
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --sage: #8B9E8B;
  --sage-light: #C5D0C5;
  --sage-dark: #5C7A5C;
  --clay: #C4A484;
  --clay-light: #E8D9C8;
  --terracotta: #C17F59;
  --warm-gray: #9A9085;
  --warm-gray-light: #D4CBC1;
  --charcoal: #3A3632;
  --charcoal-light: #5C5650;
  --white: #FFFFFF;
  --off-white: #FDFCF9;

  /* Typography */
  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Border */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-xs: 0 1px 3px rgba(58,54,50,0.06);
  --shadow-sm: 0 2px 8px rgba(58,54,50,0.08);
  --shadow-md: 0 4px 16px rgba(58,54,50,0.1);
  --shadow-lg: 0 8px 32px rgba(58,54,50,0.12);
  --shadow-xl: 0 16px 64px rgba(58,54,50,0.14);

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.25s;
  --duration-slow: 0.4s;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration-fast) var(--ease);
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================
   Typography
   ============================================ */

.font-serif { font-family: var(--font-serif); }

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.text-sage { color: var(--sage); }
.text-clay { color: var(--clay); }
.text-gray { color: var(--warm-gray); }
.text-charcoal { color: var(--charcoal); }
.text-center { text-align: center; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--space-md);
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 164, 132, 0.15);
  transition: background var(--duration-base) var(--ease);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.05em;
}

.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: all var(--duration-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--charcoal);
  background: var(--cream-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--sage);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--warm-gray-light);
}

.btn-outline:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
}

.btn-sage {
  background: var(--sage);
  color: white;
}

.btn-sage:hover {
  background: var(--sage-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--warm-gray);
  border: none;
  padding: 8px 14px;
}

.btn-ghost:hover {
  color: var(--charcoal);
  background: var(--cream-dark);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-base) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: var(--space-sm);
}

.card-body-lg {
  padding: var(--space-md);
}

/* ============================================
   Tags / Badges
   ============================================ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
}

.tag-sage { background: rgba(139, 158, 139, 0.12); color: var(--sage-dark); }
.tag-clay { background: rgba(196, 164, 132, 0.15); color: var(--terracotta); }
.tag-warm { background: rgba(154, 144, 133, 0.12); color: var(--warm-gray); }
.tag-cream { background: var(--cream-dark); color: var(--charcoal-light); }

/* ============================================
   Section
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.section-header {
  margin-bottom: var(--space-lg);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--warm-gray);
  margin-top: var(--space-xs);
  font-weight: 300;
}

/* ============================================
   Divider
   ============================================ */

.divider {
  width: 40px;
  height: 2px;
  background: var(--clay);
  margin: var(--space-sm) 0;
}

.divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Grid
   ============================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--charcoal);
  color: rgba(250, 247, 242, 0.65);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(250, 247, 242, 0.5);
}

.footer-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.35);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(250, 247, 242, 0.55);
  transition: color var(--duration-fast) var(--ease);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 247, 242, 0.08);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.3);
}

/* ============================================
   Form Elements
   ============================================ */

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--warm-gray-light);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(139, 158, 139, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--warm-gray-light);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   Page Wrapper
   ============================================ */

.page-wrapper {
  padding-top: 64px;
  min-height: 100vh;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-in {
  animation: fadeUp var(--duration-slow) var(--ease-out) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================
   Utilities
   ============================================ */

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

.w-full { width: 100%; }
.hidden { display: none !important; }

.text-warm { color: var(--warm-gray); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--warm-gray-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--warm-gray); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: var(--space-2xl) 0; }
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
