/* ==========================================================================
   一场文化 (YC CULTURE) - 纯静态离线实用样式表 (Zero-CDN Static Utilities)
   替代 Tailwind Play CDN，零外部网络请求、零运行时编译闪屏 (FOUC)
   ========================================================================== */

/* Preflight 基础元素规范 */
img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* 定位与层级 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-5 { top: 1.25rem; }
.top-6 { top: 1.5rem; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.right-6 { right: 1.5rem; }
.bottom-0 { bottom: 0; }
.bottom-20 { bottom: 5rem; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 盒模型与显示 */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }

/* Flex & Grid */
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* Space Between */
.space-x-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.875rem; }
.space-x-5 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.25rem; }
.space-x-9 > :not([hidden]) ~ :not([hidden]) { margin-left: 2.25rem; }

.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-3\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.875rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

/* 宽高与比例 */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-9 { width: 2.25rem; }
.w-11 { width: 2.75rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-60 { width: 15rem; }
.w-full { width: 100%; }

.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-9 { height: 2.25rem; }
.h-11 { height: 2.75rem; }
.h-20 { height: 5rem; }
.h-60 { height: 15rem; }
.h-full { height: 100%; }

.max-w-sm { max-width: 24rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

.max-h-\[52vh\] { max-height: 52vh; }
.max-h-\[75vh\] { max-height: 75vh; }

.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* 内外边距 */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-0\.5 { margin-left: 0.125rem; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }

.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-7 { margin-bottom: 1.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }

.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-8 { padding-top: 2rem; }
.pt-14 { padding-top: 3.5rem; }
.pt-20 { padding-top: 5rem; }

.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-16 { padding-bottom: 4rem; }
.pl-5 { padding-left: 1.25rem; }

/* 字体字号、行高与字距 */
.text-\[10px\] { font-size: 10px; line-height: 1.4; }
.text-\[11px\] { font-size: 11px; line-height: 1.4; }
.text-xs { font-size: 0.75rem; line-height: 1.15rem; }
.text-sm { font-size: 0.875rem; line-height: 1.35rem; }
.text-base { font-size: 1rem; line-height: 1.6rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.3rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.65rem; }

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

.leading-\[1\.2\] { line-height: 1.2; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.65; }

.tracking-tight { letter-spacing: -0.02em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.26em\] { letter-spacing: 0.26em; }

.uppercase { text-transform: uppercase; }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* 颜色与背景 */
.text-ink { color: #161616; }
.text-white { color: #FFFFFF; }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-\[\#4A4A46\] { color: #4A4A46; }
.text-\[\#78756E\] { color: #78756E; }
.text-\[\#A19E96\] { color: #A19E96; }
.text-\[\#E5C687\] { color: #E5C687; }

.bg-white { background-color: #FFFFFF; }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-\[\#141413\] { background-color: #141413; }
.bg-\[\#161616\] { background-color: #161616; }
.bg-\[\#F2EFE9\] { background-color: #F2EFE9; }
.bg-\[\#F2EFE9\]\/60 { background-color: rgba(242, 239, 233, 0.6); }
.bg-\[\#FAF8F4\] { background-color: #FAF8F4; }
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }
.bg-black\/45 { background-color: rgba(0, 0, 0, 0.45); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }

/* 渐变蒙版 */
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-from, rgba(0,0,0,0.75)), var(--tw-gradient-via, rgba(0,0,0,0.15)), var(--tw-gradient-to, transparent));
}
.from-black\/75 { --tw-gradient-from: rgba(0, 0, 0, 0.75); }
.via-black\/15 { --tw-gradient-via: rgba(0, 0, 0, 0.15); }
.to-transparent { --tw-gradient-to: transparent; }

/* 边框与圆角 */
.border { border-width: 1px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-\[\#E5E1D8\] { border-color: #E5E1D8; }
.rounded-\[2px\] { border-radius: 2px; }

/* 阴影与毛玻璃 */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.08); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 透明度、变换与过渡 */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.transform { transform: translate3d(0, 0, 0); }
.translate-y-0 { transform: translateY(0); }
.translate-y-24 { transform: translateY(6rem); }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-700 { transition-duration: 700ms; }

/* 交互伪类 */
.focus\:outline-none:focus { outline: none; }
.hover\:bg-\[\#FAF8F4\]:hover { background-color: #FAF8F4; }
.hover\:bg-black:hover { background-color: #000000; }
.hover\:text-ink:hover { color: #161616; }
.hover\:text-brand-gold-dark:hover { color: #9B7936; }

.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-brand-gold-dark { color: #9B7936; }
.group:hover .group-hover\:text-white { color: #FFFFFF; }

/* ==========================================================================
   响应式断点：sm (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sm\:w-12 { width: 3rem; }
  .sm\:w-20 { width: 5rem; }
  .sm\:w-auto { width: auto; }
  .sm\:h-12 { height: 3rem; }
  .sm\:h-24 { height: 6rem; }

  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-9 { padding: 2.25rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .sm\:right-8 { right: 2rem; }

  .sm\:text-sm { font-size: 0.875rem; line-height: 1.35rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.6rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.3rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.65rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1.18; }
}

/* ==========================================================================
   响应式断点：md (≥ 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:pb-0 { padding-bottom: 0; }
  .md\:bottom-8 { bottom: 2rem; }
}

/* ==========================================================================
   响应式断点：lg (≥ 1024px)
   ========================================================================== */
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:gap-14 { gap: 3.5rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:aspect-\[5\/4\] { aspect-ratio: 5 / 4; }
  .lg\:text-\[3\.5rem\] { font-size: 3.5rem; line-height: 1.18; }
}
