/* 
 * 本地Tailwind CSS样式
 * 替代CDN: https://cdn.tailwindcss.com
 * 包含项目中使用的所有Tailwind工具类
 */

/* ========== 基础重置 ========== */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
body {
    margin: 0;
    line-height: inherit;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}
a {
    color: inherit;
    text-decoration: inherit;
}
img, video {
    max-width: 100%;
    height: auto;
}
button, input, textarea, select {
    font-family: inherit;
    font-size: 100%;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}
button {
    background-color: transparent;
    background-image: none;
}

/* ========== 自定义主题色 ========== */
:root {
    --color-primary-50: #fff5f2;
    --color-primary-100: #ffede8;
    --color-primary-500: #b73a2b;
    --color-primary-600: #a82c20;
    --color-primary-700: #8f2e22;
}

/* ========== 布局 ========== */
.container { width: 100%; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* Flex */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.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; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.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; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ========== 尺寸 ========== */
.w-2 { width: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }

.h-2 { height: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.h-3 { height: 0.75rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.h-\[120px\] { height: 120px; }

.min-h-screen { min-height: 100vh; }
.max-w-none { max-width: none; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-full { max-width: 100%; }

/* ========== 间距 ========== */
/* Margin */
.m-0 { margin: 0; }
.-m-1 { margin: -0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-0 { padding-top: 0; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* ========== 排版 ========== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[1\.45rem\] { font-size: 1.45rem; }
.text-\[1\.35rem\] { font-size: 1.35rem; }
.text-\[1\.6rem\] { font-size: 1.6rem; }
.text-\[1\.4rem\] { font-size: 1.4rem; }

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

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }
.leading-7 { line-height: 1.75rem; }
.leading-8 { line-height: 2rem; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-\[-0\.03em\] { letter-spacing: -0.03em; }
.tracking-\[-0\.02em\] { letter-spacing: -0.02em; }
.tracking-\[0\.16em\] { letter-spacing: 0.16em; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.whitespace-pre-line { white-space: pre-line; }

/* ========== 颜色 ========== */
/* 文字颜色 */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-purple-600 { color: #9333ea; }
.text-orange-600 { color: #ea580c; }
.text-red-800 { color: #991b1b; }
.text-\[\#1f1b18\] { color: #1f1b18; }
.text-\[\#5b514b\] { color: #5b514b; }
.text-\[\#7a6d66\] { color: #7a6d66; }
.text-\[\#9a4336\] { color: #9a4336; }
.text-\[\#6f645e\] { color: #6f645e; }
.text-\[\#635852\] { color: #635852; }
.text-\[\#5f544d\] { color: #5f544d; }
.text-\[\#8b7e77\] { color: #8b7e77; }
.\!text-\[\#1f1b18\] { color: #1f1b18 !important; }
.\!text-white { color: #ffffff !important; }

/* 背景颜色 */
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-400 { background-color: #9ca3af; }
.bg-red-50 { background-color: #fef2f2; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-500 { background-color: #22c55e; }
.bg-\[\#fffdfa\] { background-color: #fffdfa; }
.bg-\[\#f6f1ee\] { background-color: #f6f1ee; }
.\!bg-transparent { background-color: transparent !important; }

/* 渐变 */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-purple-50 { --tw-gradient-to: #faf5ff; }

/* ========== 边框 ========== */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }

.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-blue-600 { border-color: #2563eb; }
.border-\[\#eadfd9\] { border-color: #eadfd9; }
.border-\[\#ece3df\] { border-color: #ece3df; }
.border-\[\#f0e7e2\] { border-color: #f0e7e2; }
.\!border-white\/25 { border-color: rgba(255, 255, 255, 0.25) !important; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[18px\] { border-radius: 18px; }

/* ========== 效果 ========== */
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.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.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }

.opacity-90 { opacity: 0.9; }
.opacity-50 { opacity: 0.5; }

/* ========== 过渡 ========== */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* ========== 交互状态 ========== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.resize-none { resize: none; }

/* Hover */
.hover\:bg-blue-50:hover { background-color: #eff6ff; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:text-\[\#b73a2b\]:hover { color: #b73a2b; }
.hover\:underline:hover { text-decoration: underline; }

/* Focus */
.focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }

/* Disabled */
.disabled\:bg-gray-400:disabled { background-color: #9ca3af; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ========== 响应式 ========== */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:gap-4 { gap: 1rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:p-8 { padding: 2rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-\[1\.6rem\] { font-size: 1.6rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ========== SVG ========== */
.fill-none { fill: none; }
.stroke-current { stroke: currentColor; }

/* ========== 任意值类 ========== */
/* 字体大小 */
.text-\[15px\] { font-size: 15px; }
.text-\[1rem\] { font-size: 1rem; }
.text-\[1\.02rem\] { font-size: 1.02rem; }
.text-\[1\.04rem\] { font-size: 1.04rem; }
.text-\[1\.15rem\] { font-size: 1.15rem; }
.text-\[1\.2rem\] { font-size: 1.2rem; }
.text-\[\.82rem\] { font-size: .82rem; }
.text-\[\.92rem\] { font-size: .92rem; }
.text-\[\.93rem\] { font-size: .93rem; }
.text-\[\.95rem\] { font-size: .95rem; }

/* 任意颜色 - 文字 */
.text-\[\#5b514b\] { color: #5b514b; }
.text-\[\#4e433d\] { color: #4e433d; }
.text-\[\#3d342f\] { color: #3d342f; }
.text-\[\#3f352f\] { color: #3f352f; }
.text-\[\#322925\] { color: #322925; }
.text-\[\#271f1b\] { color: #271f1b; }
.text-\[\#5f554e\] { color: #5f554e; }
.text-\[\#695e57\] { color: #695e57; }
.text-\[\#70645d\] { color: #70645d; }
.text-\[\#71665f\] { color: #71665f; }
.text-\[\#71655e\] { color: #71655e; }
.text-\[\#736962\] { color: #736962; }
.text-\[\#7b6f68\] { color: #7b6f68; }
.text-\[\#7d6b63\] { color: #7d6b63; }
.text-\[\#4a403b\] { color: #4a403b; }
.text-\[\#5d5049\] { color: #5d5049; }
.text-\[\#675b54\] { color: #675b54; }
.text-\[\#6d28d9\] { color: #6d28d9; }
.text-slate-900 { color: #0f172a; }

/* 任意颜色 - 背景 */
.bg-\[\#1f1b18\] { background-color: #1f1b18; }
.bg-\[\#fff2ef\] { background-color: #fff2ef; }
.bg-\[\#fff5f2\] { background-color: #fff5f2; }
.bg-\[\#fff8f4\] { background-color: #fff8f4; }
.bg-\[\#fff8f5\] { background-color: #fff8f5; }
.bg-\[\#f9f5ff\] { background-color: #f9f5ff; }
.bg-\[\#f3ebe8\] { background-color: #f3ebe8; }
.bg-\[\#f0e7e2\] { background-color: #f0e7e2; }
.bg-\[\#ece6e2\] { background-color: #ece6e2; }
.bg-\[\#e8ddd7\] { background-color: #e8ddd7; }

/* 任意颜色 - 边框 */
.border-\[\#ebddff\] { border-color: #ebddff; }
.border-\[\#efe3dc\] { border-color: #efe3dc; }

/* 任意间距 */
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-14 { gap: 3.5rem; }

/* 任意宽高 */
.w-\[8px\] { width: 8px; }
.w-\[9px\] { width: 9px; }
.w-\[12px\] { width: 12px; }
.h-\[8px\] { height: 8px; }
.h-\[9px\] { height: 9px; }
.h-\[12px\] { height: 12px; }
.w-\[52px\] { width: 52px; }
.h-\[52px\] { height: 52px; }
.w-\[60px\] { width: 60px; }
.h-\[60px\] { height: 60px; }
.min-h-\[54px\] { min-height: 54px; }

/* 任意圆角 */
.rounded-\[16px\] { border-radius: 16px; }
.rounded-\[20px\] { border-radius: 20px; }
.rounded-\[22px\] { border-radius: 22px; }
.rounded-\[24px\] { border-radius: 24px; }
.rounded-\[28px\] { border-radius: 28px; }
.rounded-\[34px\] { border-radius: 34px; }
.rounded-\[999px\] { border-radius: 999px; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-auto { overflow: auto; }

/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.inset-0 { inset: 0; }
.z-50 { z-index: 50; }

/* 对象适配 */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* 文字装饰 */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

/* 列表样式 */
.list-none { list-style: none; }
.list-disc { list-style-type: disc; }

/* 指针事件 */
.pointer-events-none { pointer-events: none; }

/* 空白处理 */
.whitespace-nowrap { white-space: nowrap; }

/* 阴影 */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }

/* 滤镜 */
.backdrop-blur-\[12px\] { backdrop-filter: blur(12px); }

/* 透明度背景 */
.bg-white\/72 { background-color: rgba(255, 255, 255, 0.72); }
.bg-white\/78 { background-color: rgba(255, 255, 255, 0.78); }
.bg-white\/86 { background-color: rgba(255, 255, 255, 0.86); }
.bg-white\/92 { background-color: rgba(255, 255, 255, 0.92); }
.bg-white\/96 { background-color: rgba(255, 255, 255, 0.96); }

/* 边框透明度 */
.border-white\/25 { border-color: rgba(255, 255, 255, 0.25); }

/* 响应式补充 */
@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:inline-flex { display: inline-flex; }
}

@media (max-width: 767px) {
    .md\:flex { display: none; }
}
