/* Tailwind基础样式 - 替代CDN */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}
html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
body{margin:0;line-height:inherit}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
button,input,select,textarea{font-family:inherit;font-size:100%;line-height:inherit;color:inherit;margin:0;padding:0}
button{cursor:pointer}
img,svg,video{display:block;vertical-align:middle;max-width:100%;height:auto}

/* 红色主题色 */
:root{
  --color-red-0:#ff0000;
  --color-red-1:#ff5252;
  --color-red-2:#ff7c7c;
  --color-red-3:#ffafaf;
  --color-red-4:#ffd0d0;
  --color-red-5:#ffecec;
  --color-red-6:#fff7f7;
}

/* 深色模式 */
[data-theme="dark"]{color-scheme:dark}
[data-theme="dark"] body{background:#1a1a1a;color:#e5e5e5}

/* 常用工具类 */
.container{width:100%;margin-left:auto;margin-right:auto;padding-left:1.5rem;padding-right:1.5rem}
@media(min-width:640px){.container{max-width:640px}}
@media(min-width:768px){.container{max-width:768px}}
@media(min-width:1024px){.container{max-width:1024px}}
@media(min-width:1280px){.container{max-width:1280px}}
.mx-auto{margin-left:auto;margin-right:auto}
.flex{display:flex}
.grid{display:grid}
.hidden{display:none}
.fixed{position:fixed}
.absolute{position:absolute}
.relative{position:relative}
.inset-0{top:0;right:0;bottom:0;left:0}
.z-10{z-index:10}
.z-20{z-index:20}
.z-30{z-index:30}
.z-50{z-index:50}
.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}
.duration-300{transition-duration:300ms}
.duration-500{transition-duration:500ms}
.rounded-xl{border-radius:.75rem}
.rounded-2xl{border-radius:1rem}
.rounded-3xl{border-radius:1.5rem}
.rounded-full{border-radius:9999px}
.shadow-xl{box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1)}
.shadow-2xl{box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.hover\:scale-110:hover{transform:scale(1.1)}
.hover\:shadow-2xl:hover{box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.opacity-0{opacity:0}
.opacity-100{opacity:1}
.bg-white{background-color:#fff}
.bg-red-50{background-color:#fef2f2}
.text-red-500{color:#ef4444}
.text-slate-500{color:#64748b}
.font-black{font-weight:900}
.font-bold{font-weight:700}
.text-sm{font-size:.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-3xl{font-size:1.875rem;line-height:2.25rem}
.text-5xl{font-size:3rem;line-height:1}
@media(min-width:768px){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:ml-64{margin-left:16rem}}
@media(min-width:1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Prose样式 */
.prose{color:#374151;max-width:65ch}
.prose h1{color:#111827;font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}
.prose h2{color:#111827;font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}
.prose h3{color:#111827;font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}
.prose p{margin-top:1.25em;margin-bottom:1.25em;line-height:1.75}
.prose a{color:#ef4444;text-decoration:underline;font-weight:500}
.prose strong{color:#111827;font-weight:600}
.prose code{color:#ef4444;font-weight:600;font-size:.875em;background:#fef2f2;padding:.2em .4em;border-radius:.25rem}
.prose pre{background:#1e293b;overflow-x:auto;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}
.prose pre code{background:transparent;border-width:0;border-radius:0;padding:0;font-weight:400;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}
.prose ul{list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}
.prose ol{list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}
.prose li{margin-top:.5em;margin-bottom:.5em}
[data-theme="dark"] .prose{color:#e5e5e5}
[data-theme="dark"] .prose h1,[data-theme="dark"] .prose h2,[data-theme="dark"] .prose h3{color:#fff}
[data-theme="dark"] .prose strong{color:#fff}
[data-theme="dark"] .prose code{background:rgba(239,68,68,.2);color:#fca5a5}
[data-theme="dark"] .prose pre{background:#0f172a}
.prose-lg{font-size:1.125rem;line-height:1.7777778}
.prose-headings\:text-red-500 h1,.prose-headings\:text-red-500 h2,.prose-headings\:text-red-500 h3{color:#ef4444}
[data-theme="dark"] .prose-headings\:text-red-400 h1,[data-theme="dark"] .prose-headings\:text-red-400 h2,[data-theme="dark"] .prose-headings\:text-red-400 h3{color:#f87171}
