/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 颜色变量 */
:root {
    --color-primary: #8B4513;
    --color-secondary: #D2B48C;
    --color-background: #F5F5DC;
    --color-text: #333333;
    --color-white: #FFFFFF;
    --color-gray-600: #6B7280;
}

/* 字体定义 */
body {
    font-family: 'Source Han Sans SC Normal', sans-serif, 'Noto Serif SC', serif;
    background-color: var(--color-background);
    color: var(--color-text);
    min-height: 100vh;
}

/* 容器样式 */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.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;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.p-2 {
    padding: 0.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

/* 阴影效果 */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 圆角 */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* 文本样式 */
.font-bold {
    font-weight: 700;
}

.font-chinese {
    font-family: 'Source Han Sans SC Normal', sans-serif, 'Noto Serif SC', serif;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-primary {
    color: var(--color-primary);
}

.text-text {
    color: var(--color-text);
}

.text-white {
    color: var(--color-white);
}

.text-gray-600 {
    color: var(--color-gray-600);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 背景色 */
.bg-background {
    background-color: var(--color-background);
}

.bg-white {
    background-color: var(--color-white);
}

.bg-secondary\/30 {
    background-color: rgba(210, 180, 140, 0.3);
}

/* 布局工具类 */
.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.gap-2 {
    gap: 0.5rem;
}

.pl-4 {
    padding-left: 1rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* 诗歌内容样式 */
.poem-line {
    line-height: 1.8;
    font-family: 'Source Han Sans SC Normal', sans-serif, 'Noto Serif SC', serif;
}

/* 标签样式 */
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}