body {
    /* 字体栈 - 替换为通用的无衬线字体栈 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    /* 背景色 - 深红棕色渐变背景 (已在自定义样式中定义) */
    
    color: white; /* text-white */
    overflow-x: hidden;
    min-height: 100vh; /* min-h-screen */
    display: flex; /* flex */
    flex-direction: column; /* flex-col */
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    padding: 0.833vw; /* p-4 */
}
/* 隐藏滚动条 */
.no-scroll { overflow: hidden; }

/* 基础通用类 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.h-px { height: 0.052vw; }

/* 字体和颜色 */
.text-white { color: #ffffff; }
.text-transparent { color: transparent; }
.font-black { font-weight: 900; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.text-stone-300 { color: #D6D3D1; } /* stone-300 */
.text-red-200 { color: #FECACA; } /* red-200 */
.text-red-100 { color: #FEE2E2; } /* red-100 */
.text-amber-300 { color: #FCD34D; } /* amber-300 */
.text-amber-200 { color: #FDE68A; } /* amber-200 */
.text-stone-900 { color: #0c0a09; } /* stone-900 */

/* ========================================================================= */
/* 2. 动画和关键帧 */
/* ========================================================================= */

/* 弹窗进入动画 */
@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.8) translateY(1.042vw); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 旋转动画 */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.417vw); }
}

/* 脉冲动画 (animate-pulse) */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* 延迟浮动，让不同元素错开 */
.float-delay-1 { animation: float 3s ease-in-out infinite 0.5s; }
.float-delay-2 { animation: float 3s ease-in-out infinite 1s; }

.modal-content-wrapper {
    animation: modalPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 弹窗旋转光环动画 */
.animate-spin-slow { animation: spin-slow 10s linear infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }


/* ========================================================================= */
/* 3. 组件和布局样式 */
/* ========================================================================= */

/* 弹窗遮罩层 (fixed inset-0 bg-black/85 transition-opacity duration-300) */
#award-modal {
    position: fixed;
    top: 0; bottom: 0; left: 0; right: 0; /* inset-0 */
    display: flex;
    align-items: center;
    justify-content: center;
    height:100%;
}
#award-modal > div:first-child {
    background-color: rgba(0, 0, 0, 0.85); /* bg-black/85 */
    transition-property: opacity; /* transition-opacity */
    transition-duration: 300ms; /* duration-300 */
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0; /* inset-0 */
}

/* 弹窗主体容器 (max-w-lg mx-4) */
#award-modal .modal-content-wrapper {
    max-width: 26.667vw; /* max-w-lg */
    margin-left: 0.833vw; /* mx-4 */
    margin-right: 0.833vw; /* mx-4 */
}

/* 主卡片样式 (glass-card) */
.glass-card {
    /* ** 颜色修改点 2: 深赤陶色 ** */
    background: #8B3A2C; 
    border: 0.052vw solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1.302vw 2.604vw -0.625vw rgba(0, 0, 0, 0.6);
    border-radius: 1.25vw; /* rounded-3xl */
    padding: 0; /* p-0 */
    overflow: hidden; /* overflow-hidden */
    display: flex;
    flex-direction: column;
}

/* 单项奖小卡片样式 (trophy-card) */
.trophy-card {
    /* ** 颜色修改点 3: 稍微透明的基色 ** */
    background: rgba(255, 255, 255, 0.05); 
    border: 0.052vw solid rgba(255,255,255,0.15);
    backdrop-filter: blur(0.208vw);
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 0.625vw; /* p-3 */
    border-radius: 0.625vw; /* rounded-xl */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.trophy-card:hover {
    transform: translateY(-0.26vw);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.7); /* 琥珀金色边框 */
}

/* 按钮流光效果 (shine-button) */
.shine-button {
    position: relative;
    overflow: hidden;
}
.shine-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.shine-button:hover::after {
    left: 100%;
}

/* 粒子画布 */
#confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 60; 
}

/* 文本区域样式 (用于 LLM 输出) */
.text-area {
    min-height: 5.208vw;
    max-height: 15.625vw;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 0.625vw; /* p-3 */
    background-color: rgba(0, 0, 0, 0.1); /* bg-black/10 */
    border-radius: 0.417vw; /* rounded-lg */
    border: 0.052vw solid rgba(255, 255, 255, 0.1); /* border border-white/10 */
    font-size: 0.729vw; /* text-sm */
    color: #FEE2E2; /* text-red-100 */
}

/* ========================================================================= */
/* 4. 间距、排版和细节 (Tailwind Utility Conversions) */
/* ========================================================================= */

/* 排版和文字大小 */
.text-4xl { font-size: 1.875vw; line-height: 2.083vw; }
.text-sm { font-size: 0.929vw; line-height: 1.042vw; }
.text-xs { font-size: 0.825vw; line-height: 0.833vw; }
.text-10px { font-size: 0.521vw; } /* text-[10px] */
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-02em { letter-spacing: 0.2em; } /* tracking-[0.2em] */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}
.drop-shadow-md {
    filter: drop-shadow(0 0.208vw 0.156vw rgba(0, 0, 0, 0.07)) drop-shadow(0 0.104vw 0.104vw rgba(0, 0, 0, 0.06));
}
.drop-shadow-gold {
    filter: drop-shadow(0 0 1.042vw rgba(234, 179, 8, 0.6)); /* drop-shadow-[0_0_20px_...] */
}

/* 尺寸和边框 */
.w-32 { width: 6.667vw; }
.h-32 { height: 6.667vw; }
.w-10 { width: 2.083vw; }
.h-10 { height: 2.083vw; }
.rounded-full { border-radius: 520.833vw; }
.border-2 { border-width: 0.104vw; }
.border-dashed { border-style: dashed; }
.blur-80px { filter: blur(4.167vw); } /* blur-[80px] */

/* 间距和定位 */
.space-y-4 > * + * { margin-top: 0.833vw; }
.space-y-4 {
    /* 容器本身不需要样式，需要处理子元素的间距 */
    /* 仅用于辅助理解结构 */
}
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 26.667vw; }
.top-4 { top: 0.833vw; }
.right-4 { right: 0.833vw; }
.top-minus-20 { top: -4.167vw; } /* -top-20 */
.left-1-2 { left: 50%; } /* left-1/2 */
.translate-x-minus-1-2 { transform: translateX(-50%); } /* -translate-x-1/2 */
.pt-10 { padding-top: 2.083vw; }
.pb-6 { padding-bottom: 1.25vw; }
.px-8 { padding-left: 1.667vw; padding-right: 1.667vw; }
.pt-4 { padding-top: 0.833vw; }
.p-2 { padding: 0.417vw; }
.p-6 { padding: 1.25vw; }
.mb-4 { margin-bottom: 0.833vw; }
.mb-2 { margin-bottom: 0.417vw; }
.mb-1 { margin-bottom: 0.208vw; }
.mb-0-5 { margin-bottom: 0.104vw; } /* mb-0.5 */
.pt-4 { padding-top: 0.833vw; }

/* 网格布局 */
.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-3 { gap: 0.625vw; }

/* ========================================================================= */
/* 5. 颜色和背景 (Tailwind Color Conversions) */
/* ========================================================================= */

/* 背景色 */
.bg-red-700 { background-color: #B91C1C; }
.bg-stone-700 { background-color: #44403C; }
.bg-amber-400-20 { background-color: rgba(251, 191, 36, 0.2); } /* bg-amber-400/20 */
.bg-amber-400-30 { background-color: rgba(251, 191, 36, 0.3); } /* bg-amber-400/30 */
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); } /* bg-white/10 */
.bg-black-10 { background-color: rgba(0, 0, 0, 0.1); } /* bg-black/10 */
.bg-amber-400 { background-color: #FBBF24; }

/* 边框色 */
.border-amber-400-30 { border-color: rgba(251, 191, 36, 0.3); } /* border-amber-400/30 */
.border-white-20 { border-color: rgba(255, 255, 255, 0.2); } /* border-white/20 */
.border-white-10 { border-color: rgba(255, 255, 255, 0.1); } /* border-white/10 */

/* 渐变背景 (用于标题和按钮) */
.bg-grad-amber-red {
    background-image: linear-gradient(to right, #FBBF24, #F87171); /* from-amber-400 to-red-400 */
}
.bg-grad-amber-yellow {
    background-image: linear-gradient(to right, #FBBF24, #CA8A04); /* from-amber-400 to-yellow-600 */
}
.bg-grad-divider {
    background-image: linear-gradient(to right, transparent, rgba(253, 230, 138, 0.2), transparent); /* from-transparent via-amber-200/20 to-transparent */
}
.bg-grad-highlight {
    background-image: linear-gradient(to right, transparent, #FCD34D, transparent); /* from-transparent via-amber-300 to-transparent */
    opacity: 0.6;
}


/* ========================================================================= */
/* 6. 交互状态 (Hover, Focus, Disabled) */
/* ========================================================================= */

/* 按钮: Reveal Awards */
.bg-red-700:hover { background-color: #991B1B; } /* hover:bg-red-800 */
.hover-scale-105:hover { transform: scale(1.05); } /* hover:scale-105 */
.active-scale-95:active { transform: scale(0.95); } /* active:scale-95 */

/* 关闭按钮 */
.text-white-60:hover { color: #FFFFFF; } /* hover:text-white */

/* 奖励卡片图标 Group Hover */
.group:hover .group-hover-text-white { color: #FFFFFF; }
.group:hover .group-hover-bg-amber-500 { background-color: #F59E0B; }

/* 内部功能按钮: Generate Post */
.bg-amber-400:hover { background-color: #F59E0B; } /* hover:bg-amber-500 */
.hover-scale-102:hover { transform: scale(1.02); } /* hover:scale-[1.02] */
.active-scale-98:active { transform: scale(0.98); } /* active:scale-[0.98] */

/* 复制按钮: Copy to Clipboard */
.bg-red-700:hover { background-color: #991B1B; } /* hover:bg-red-800 */

/* 禁用状态 */
.disabled-opacity-50:disabled { opacity: 0.5; }
.disabled-cursor-not-allowed:disabled { cursor: not-allowed; }

/* 输入框焦点状态 */
.input-focus:focus {
    box-shadow: 0 0 0 0.156vw rgba(251, 191, 36, 0.5); /* focus:ring-amber-500 equivalent */
    border-color: #F59E0B; /* focus:border-amber-500 */
}

/* ========================================================================= */
/* 7. 响应式样式 (Media Queries) */
/* ========================================================================= */

/* Medium devices (md: 768px and up) */
@media (min-width: 40vw) {
    .md-text-6xl { /* md:text-6xl for h1 */
        font-size: 3.125vw;
        line-height: 1;
    }
}