/* 朋友圈文案生成器 - 自定义样式 */

/* 渐入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* 卡片依次出现的延迟 */
section.space-y-4 > div:nth-child(1) { animation-delay: 0ms; }
section.space-y-4 > div:nth-child(2) { animation-delay: 60ms; }
section.space-y-4 > div:nth-child(3) { animation-delay: 120ms; }
section.space-y-4 > div:nth-child(4) { animation-delay: 180ms; }
section.space-y-4 > div:nth-child(5) { animation-delay: 240ms; }
section.space-y-4 > div:nth-child(6) { animation-delay: 300ms; }
section.space-y-4 > div:nth-child(7) { animation-delay: 360ms; }
section.space-y-4 > div:nth-child(8) { animation-delay: 420ms; }

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.4);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.6);
}

/* 选中文本颜色 */
::selection {
    background: rgba(139, 92, 246, 0.25);
}

/* 文本域placeholder优化 */
textarea::placeholder {
    line-height: 1.6;
}

/* 去除移动端点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 按钮触摸反馈 */
button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 头像光环慢速旋转动画 */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spinSlow 6s linear infinite;
}

/* 高级用户头像脉冲效果 */
@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.95; }
}

/* 文本渐变 */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================
   幻彩皮肤（.neon）
   深紫黑基底 + 霓虹流光 + 玻璃质感
   ======================================== */

/* 动态霓虹背景光晕 */
@keyframes neonDrift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(3%, -2%) scale(1.08); }
    66%  { transform: translate(-2%, 3%) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes neonDrift2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-4%, 2%) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

/* 流光描边动画 */
@keyframes neonBorderFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 文字霓虹脉冲 */
@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 8px rgba(255, 0, 128, 0.6), 0 0 16px rgba(0, 255, 255, 0.3); }
    50%      { text-shadow: 0 0 12px rgba(255, 0, 128, 0.9), 0 0 24px rgba(0, 255, 255, 0.5); }
}

.neon body {
    background: #0a0118 !important;
    color: #f0e6ff;
    position: relative;
    overflow-x: hidden;
}

/* 全屏动态光晕背景层 */
.neon body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 0, 128, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 15%, rgba(0, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(139, 0, 255, 0.20) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.08) 0%, transparent 35%),
        linear-gradient(180deg, #0a0118 0%, #14002b 50%, #0a0118 100%);
    animation: neonDrift 20s ease-in-out infinite;
}

.neon body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 70% 40%, rgba(0, 255, 255, 0.10) 0%, transparent 30%),
        radial-gradient(circle at 25% 70%, rgba(255, 0, 128, 0.10) 0%, transparent 30%);
    animation: neonDrift2 25s ease-in-out infinite reverse;
    pointer-events: none;
}

/* 导航栏：玻璃质感 + 底部流光线 */
.neon nav {
    background: rgba(15, 5, 30, 0.75) !important;
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 0, 128, 0.25) !important;
    box-shadow: 0 4px 30px rgba(139, 0, 255, 0.15), inset 0 -1px 0 rgba(0, 255, 255, 0.15);
}

.neon nav h1 {
    background: linear-gradient(90deg, #ff0080, #8b00ff, #00ffff, #ff0080);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonBorderFlow 6s linear infinite;
    font-weight: 700;
}

.neon nav p {
    color: #b794f6 !important;
}

/* LOGO 图标：霓虹发光 */
.neon nav .bg-gradient-to-br {
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5), 0 0 40px rgba(139, 0, 255, 0.3);
}

/* 主卡片：玻璃质感 + 流光描边 */
.neon main section {
    background: rgba(20, 5, 40, 0.55) !important;
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 0, 128, 0.2) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(139, 0, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.neon main section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.6), rgba(0, 255, 255, 0.6), transparent);
    background-size: 200% 100%;
    animation: neonBorderFlow 4s linear infinite;
}

/* 卡片悬停：霓虹光晕加强 */
.neon main section:hover {
    border-color: rgba(255, 0, 128, 0.4) !important;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 0, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* 文字颜色 */
.neon main h1,
.neon main h2,
.neon main h3 {
    color: #f0e6ff !important;
}

.neon main h2 {
    text-shadow: 0 0 12px rgba(255, 0, 128, 0.3);
}

.neon main p,
.neon main span,
.neon main label {
    color: #d4c4f0 !important;
}

.neon main .text-gray-500,
.neon main .text-gray-400 {
    color: #9d8bb8 !important;
}

/* 输入框：霓虹边框聚焦 */
.neon main input[type="text"],
.neon main textarea {
    background: rgba(10, 0, 25, 0.6) !important;
    border: 1px solid rgba(139, 0, 255, 0.3) !important;
    color: #f0e6ff !important;
    transition: all 0.3s ease;
}

.neon main input[type="text"]:focus,
.neon main textarea:focus {
    border-color: rgba(255, 0, 128, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(255, 0, 128, 0.15), 0 0 20px rgba(255, 0, 128, 0.2);
    outline: none;
}

.neon main input::placeholder,
.neon main textarea::placeholder {
    color: #6b5a8a !important;
}

/* 按钮：品牌主色 → 霓虹渐变 */
.neon main button[class*="bg-brand"],
.neon main button[class*="from-brand"] {
    background: linear-gradient(135deg, #ff0080 0%, #8b00ff 50%, #00ffff 100%) !important;
    background-size: 200% 200% !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(255, 0, 128, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    animation: neonBorderFlow 4s ease infinite;
}

.neon main button[class*="bg-brand"]:hover,
.neon main button[class*="from-brand"]:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 128, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* 次级按钮 */
.neon main button[class*="bg-gray-100"],
.neon main button[class*="bg-gray-700"] {
    background: rgba(30, 10, 55, 0.6) !important;
    border: 1px solid rgba(139, 0, 255, 0.25);
    color: #d4c4f0 !important;
}

.neon main button[class*="bg-gray-100"]:hover,
.neon main button[class*="bg-gray-700"]:hover {
    background: rgba(50, 15, 80, 0.7) !important;
    border-color: rgba(255, 0, 128, 0.4);
    color: #fff !important;
}

/* 选中态 tab：霓虹流光 */
.neon main button[class*="bg-brand-500"] {
    background: linear-gradient(90deg, #ff0080, #8b00ff) !important;
    box-shadow: 0 0 15px rgba(255, 0, 128, 0.5);
}

/* 头像光环加强 */
.neon main .animate-spin-slow {
    filter: blur(2px) saturate(200%);
}

/* 滚动条：霓虹色 */
.neon ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff0080, #8b00ff);
    border-radius: 3px;
}

.neon ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff0080, #00ffff);
}

/* 选中文本 */
.neon ::selection {
    background: rgba(255, 0, 128, 0.35);
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 0, 128, 0.8);
}

/* 表格/列表项分隔线 */
.neon main .border-gray-200,
.neon main .border-gray-700 {
    border-color: rgba(139, 0, 255, 0.15) !important;
}

.neon main .border-b {
    border-color: rgba(139, 0, 255, 0.15) !important;
}

/* 标签徽章发光 */
.neon main .bg-brand-50,
.neon main .bg-brand-100 {
    background: rgba(255, 0, 128, 0.12) !important;
    color: #ff80c0 !important;
    border: 1px solid rgba(255, 0, 128, 0.25);
}

/* 金色元素 */
.neon main .text-gold-500,
.neon main .text-amber-500 {
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.neon main .bg-gold-500,
.neon main .bg-amber-500 {
    background: linear-gradient(135deg, #ffd700, #ff9500) !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Toast 提示框霓虹化 */
.neon .fixed.bottom-6 {
    background: rgba(15, 5, 30, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 0, 128, 0.3) !important;
    box-shadow: 0 8px 32px rgba(139, 0, 255, 0.3);
}

/* 模态框/弹层 */
.neon .fixed.inset-0 > div {
    background: rgba(15, 5, 30, 0.95) !important;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 0, 128, 0.25) !important;
}

/* AI 提示标记发光 */
.neon .text-amber-600 {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* 皮肤过渡动画 */
.neon, .dark {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   每日推荐产品卡片
   ======================================== */

/* 产品卡片整体 */
.daily-product-card {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.daily-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dark .daily-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* 种草/销售文案块 */
.daily-copy-block {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 12px;
    transition: background-color 0.2s ease;
}

.dark .daily-copy-block {
    background: rgba(255, 255, 255, 0.03);
}

.daily-copy-block:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dark .daily-copy-block:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* 产品图片加载过渡 */
.daily-product-card img {
    transition: opacity 0.3s ease;
}

.daily-product-card img[src=""] {
    opacity: 0;
}

/* 幻彩皮肤适配 */
.neon .daily-product-card {
    background: rgba(20, 5, 40, 0.45) !important;
    border: 1px solid rgba(139, 0, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(139, 0, 255, 0.08);
}

.neon .daily-product-card:hover {
    border-color: rgba(255, 0, 128, 0.35) !important;
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.15), 0 0 15px rgba(139, 0, 255, 0.1);
    transform: translateY(-3px);
}

.neon .daily-copy-block {
    background: rgba(255, 0, 128, 0.06) !important;
    border: 1px solid rgba(139, 0, 255, 0.1);
    border-radius: 8px;
}

.neon .daily-copy-block:hover {
    background: rgba(255, 0, 128, 0.12) !important;
    border-color: rgba(255, 0, 128, 0.2);
}

.neon .daily-product-card .text-brand-600,
.neon .daily-product-card .text-brand-400 {
    color: #ff80c0 !important;
    text-shadow: 0 0 6px rgba(255, 0, 128, 0.4);
}

/* 每日推荐区域标题渐变（neon） */
.neon .daily-product-card .text-green-600,
.neon .daily-product-card .text-green-400 {
    color: #00ff88 !important;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

.neon .daily-product-card .text-red-600,
.neon .daily-product-card .text-red-400 {
    color: #ff4488 !important;
    text-shadow: 0 0 6px rgba(255, 0, 128, 0.4);
}
