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

:root {
  /* 米色基调，更温暖高级 */
  --bg-base: #f7f4ee;
  --bg-base-soft: #f0ebe2;
  --bg-card: #ffffff;
  --bg-elevated: #fbf8f3;
  --bg-input: #fdfcf9;
  --bg-hover: #efe9dd;

  /* 边框更柔和 */
  --border: rgba(60, 50, 40, 0.08);
  --border-hover: rgba(60, 50, 40, 0.14);
  --border-strong: rgba(60, 50, 40, 0.2);

  /* 文字更有层次 */
  --text-primary: #2a2620;
  --text-secondary: #6b6258;
  --text-muted: #968c80;

  /* 主色：温暖的琥珀棕 */
  --brand: #b8723f;
  --brand-hover: #a66335;
  --brand-light: #f4e8dd;
  --brand-dim: rgba(184, 114, 63, 0.1);
  --brand-glow: rgba(184, 114, 63, 0.2);
  --brand-grad-start: #c8854e;
  --brand-grad-end: #a85d2e;

  /* 强调色 */
  --accent-2: #6b8e6f;
  --accent-3: #c8a85f;

  --gray-100: #f5f2ec;
  --gray-200: #e8e3d8;
  --gray-300: #d4cdbe;

  --success: #6b8e6f;
  --success-light: #e8f0e9;
  --error: #c75c4a;
  --error-light: #f7e8e5;
  --warning: #d4a04a;
  --warning-light: #f7eed8;

  /* 阴影更有层次 */
  --shadow-xs: 0 1px 2px rgba(60, 50, 40, 0.04);
  --shadow-sm: 0 2px 8px rgba(60, 50, 40, 0.06), 0 1px 2px rgba(60, 50, 40, 0.04);
  --shadow-md: 0 6px 20px rgba(60, 50, 40, 0.08), 0 2px 6px rgba(60, 50, 40, 0.04);
  --shadow-lg: 0 12px 40px rgba(60, 50, 40, 0.1), 0 4px 12px rgba(60, 50, 40, 0.06);
  --shadow-xl: 0 20px 60px rgba(60, 50, 40, 0.12), 0 8px 24px rgba(60, 50, 40, 0.08);

  /* 更大的圆角，更柔和 */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 9999px;

  --font-serif: 'Noto Serif SC', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;

  /* 渐变 */
  --gradient-warm: linear-gradient(135deg, #c8854e 0%, #a85d2e 100%);
  --gradient-soft: linear-gradient(180deg, #fbf8f3 0%, #f5f0e6 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img { max-width: 100%; height: auto; }

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

input, textarea, select {
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
* { scrollbar-color: var(--gray-300) transparent; scrollbar-width: thin; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: white;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.nav-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--brand); }

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

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}
@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .container { padding: 0 16px; }
  .container-narrow { padding: 0 16px; }
}