<template>
  <div class="min-h-screen bg-gray-50 dark:bg-gray-900">
    <!-- 顶部导航栏 -->
    <nav class="bg-white dark:bg-gray-800 shadow-sm">
      <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="flex justify-between h-16">
          <div class="flex items-center">
            <h1 class="text-xl font-bold text-gray-800 dark:text-white">营销分析</h1>
          </div>
          <div class="flex items-center space-x-4">
            <button 
              @click="handleExportReport"
              class="px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700 flex items-center space-x-2"
            >
              <DownloadIcon class="h-5 w-5" />
              <span>导出报表</span>
            </button>
          </div>
        </div>
      </div>
    </nav>

    <!-- 主要内容区域 -->
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
      <!-- 搜索和筛选区域 -->
      <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6 mb-8">
        <div class="grid grid-cols-1 md:grid-cols-4 gap-4">
          <div class="relative">
            <input
              v-model="searchText"
              @input="handleSearch"
              type="text"
              placeholder="搜索活动名称/ID..."
              class="w-full pl-10 pr-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white"
            />
            <SearchIcon class="absolute left-3 top-2.5 h-5 w-5 text-gray-400 dark:text-gray-500" />
          </div>
          <select 
            v-model="campaignType"
            @change="handleCampaignTypeChange"
            class="border border-gray-300 dark:border-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white"
          >
            <option value="">所有类型</option>
            <option value="email">邮件营销</option>
            <option value="sms">短信营销</option>
            <option value="social">社交媒体</option>
            <option value="ads">广告投放</option>
          </select>
          <select 
            v-model="status"
            @change="handleStatusChange"
            class="border border-gray-300 dark:border-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white"
          >
            <option value="">所有状态</option>
            <option value="running">进行中</option>
            <option value="completed">已完成</option>
            <option value="scheduled">已计划</option>
            <option value="cancelled">已取消</option>
          </select>
          <select 
            v-model="timeRange"
            @change="handleTimeRangeChange"
            class="border border-gray-300 dark:border-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500 bg-white dark:bg-gray-700 text-gray-900 dark:text-white"
          >
            <option value="">所有时间</option>
            <option value="today">今天</option>
            <option value="week">本周</option>
            <option value="month">本月</option>
            <option value="quarter">本季度</option>
          </select>
        </div>
      </div>

      <!-- 营销统计卡片 -->
      <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
          <div class="flex items-center">
            <div class="p-3 rounded-full bg-blue-100 dark:bg-blue-900">
              <UsersIcon class="h-6 w-6 text-blue-600 dark:text-blue-400" />
            </div>
            <div class="ml-4">
              <p class="text-sm font-medium text-gray-600 dark:text-gray-400">总触达人数</p>
              <p class="text-2xl font-semibold text-gray-900 dark:text-white">12,345</p>
            </div>
          </div>
        </div>
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
          <div class="flex items-center">
            <div class="p-3 rounded-full bg-green-100 dark:bg-green-900">
              <MousePointerClickIcon class="h-6 w-6 text-green-600 dark:text-green-400" />
            </div>
            <div class="ml-4">
              <p class="text-sm font-medium text-gray-600 dark:text-gray-400">点击率</p>
              <p class="text-2xl font-semibold text-gray-900 dark:text-white">3.2%</p>
            </div>
          </div>
        </div>
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
          <div class="flex items-center">
            <div class="p-3 rounded-full bg-yellow-100 dark:bg-yellow-900">
              <ShoppingCartIcon class="h-6 w-6 text-yellow-600 dark:text-yellow-400" />
            </div>
            <div class="ml-4">
              <p class="text-sm font-medium text-gray-600 dark:text-gray-400">转化率</p>
              <p class="text-2xl font-semibold text-gray-900 dark:text-white">1.8%</p>
            </div>
          </div>
        </div>
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
          <div class="flex items-center">
            <div class="p-3 rounded-full bg-purple-100 dark:bg-purple-900">
              <DollarSignIcon class="h-6 w-6 text-purple-600 dark:text-purple-400" />
            </div>
            <div class="ml-4">
              <p class="text-sm font-medium text-gray-600 dark:text-gray-400">ROI</p>
              <p class="text-2xl font-semibold text-gray-900 dark:text-white">2.5</p>
            </div>
          </div>
        </div>
      </div>

      <!-- 营销分析图表 -->
      <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
          <h3 class="text-lg font-medium text-gray-900 dark:text-white mb-4">营销活动趋势</h3>
          <div ref="trendChartRef" class="h-64"></div>
        </div>
        <div class="bg-white dark:bg-gray-800 rounded-lg shadow p-6">
          <h3 class="text-lg font-medium text-gray-900 dark:text-white mb-4">渠道效果分析</h3>
          <div ref="channelChartRef" class="h-64"></div>
        </div>
      </div>

      <!-- 营销活动列表 -->
      <div class="bg-white dark:bg-gray-800 rounded-lg shadow overflow-hidden">
        <div class="overflow-x-auto">
          <table class="min-w-full divide-y divide-gray-200 dark:divide-gray-700">
            <thead class="bg-gray-50 dark:bg-gray-700">
              <tr>
                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">活动信息</th>
                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">类型</th>
                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">预算</th>
                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">开始时间</th>
                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">状态</th>
                <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 dark:text-gray-300 uppercase tracking-wider">操作</th>
              </tr>
            </thead>
            <tbody class="bg-white dark:bg-gray-800 divide-y divide-gray-200 dark:divide-gray-700">
              <tr v-for="campaign in paginatedCampaigns" :key="campaign.id" class="hover:bg-gray-50 dark:hover:bg-gray-700">
                <td class="px-6 py-4">
                  <div class="flex items-center">
                    <div class="flex-shrink-0 h-10 w-10">
                      <img class="h-10 w-10 rounded-full object-cover" :src="campaign.image" :alt="campaign.name">
                    </div>
                    <div class="ml-4">
                      <div class="text-sm font-medium text-gray-900 dark:text-white">{{ campaign.name }}</div>
                      <div class="text-sm text-gray-500 dark:text-gray-400">{{ campaign.description }}</div>
                    </div>
                  </div>
                </td>
                <td class="px-6 py-4">
                  <span :class="['type-tag', `type-${campaign.type}`]">
                    {{ campaign.type === 'email' ? '邮件营销' : 
                       campaign.type === 'sms' ? '短信营销' : 
                       campaign.type === 'social' ? '社交媒体' : '广告投放' }}
                  </span>
                </td>
                <td class="px-6 py-4">
                  <div class="text-sm text-gray-900 dark:text-white">¥{{ campaign.budget }}</div>
                </td>
                <td class="px-6 py-4">
                  <div class="text-sm text-gray-900 dark:text-white">{{ campaign.startTime }}</div>
                </td>
                <td class="px-6 py-4">
                  <span :class="['status-tag', `status-${campaign.status}`]">
                    {{ campaign.status === 'running' ? '进行中' : 
                       campaign.status === 'completed' ? '已完成' : 
                       campaign.status === 'scheduled' ? '已计划' : '已取消' }}
                  </span>
                </td>
                <td class="px-6 py-4 text-sm font-medium">
                  <button 
                    @click="handleViewCampaign(campaign)"
                    class="action-button view-button"
                  >
                    <EyeIcon class="h-4 w-4 inline-block mr-1" />
                    查看
                  </button>
                  <button 
                    @click="handleEditCampaign(campaign)"
                    class="action-button edit-button"
                  >
                    <EditIcon class="h-4 w-4 inline-block mr-1" />
                    编辑
                  </button>
                  <button 
                    @click="handleDeleteCampaign(campaign)"
                    class="action-button delete-button"
                  >
                    <TrashIcon class="h-4 w-4 inline-block mr-1" />
                    删除
                  </button>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>

      <!-- 分页 -->
      <div class="bg-white dark:bg-gray-800 px-4 py-3 flex items-center justify-between border-t border-gray-200 dark:border-gray-700 sm:px-6 mt-4">
        <div class="flex-1 flex justify-between sm:hidden">
          <button 
            @click="handlePageChange(currentPage - 1)"
            :disabled="currentPage === 1"
            class="pagination-button"
          >
            上一页
          </button>
          <button 
            @click="handlePageChange(currentPage + 1)"
            :disabled="currentPage === totalPages"
            class="pagination-button"
          >
            下一页
          </button>
        </div>
        <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
          <div>
            <p class="text-sm text-gray-700 dark:text-gray-300">
              显示 <span class="font-medium">{{ (currentPage - 1) * pageSize + 1 }}</span> 到 
              <span class="font-medium">{{ Math.min(currentPage * pageSize, filteredCampaigns.length) }}</span> 条，共 
              <span class="font-medium">{{ filteredCampaigns.length }}</span> 条
            </p>
          </div>
          <div>
            <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
              <button 
                @click="handlePageChange(currentPage - 1)"
                :disabled="currentPage === 1"
                class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600"
              >
                <ChevronLeftIcon class="h-5 w-5" />
              </button>
              <button 
                v-for="page in totalPages"
                :key="page"
                @click="handlePageChange(page)"
                :class="[
                  'relative inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 text-sm font-medium',
                  currentPage === page ? 'bg-blue-600 text-white border-blue-600' : 'bg-white dark:bg-gray-700 text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-600'
                ]"
              >
                {{ page }}
              </button>
              <button 
                @click="handlePageChange(currentPage + 1)"
                :disabled="currentPage === totalPages"
                class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600"
              >
                <ChevronRightIcon class="h-5 w-5" />
              </button>
            </nav>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, computed, onMounted, onUnmounted } from 'vue'
import * as echarts from 'echarts'
import { 
  LineChart,
  BarChart,
  PieChart,
  ScatterChart
} from 'echarts/charts'
import {
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  GridComponent,
  DataZoomComponent
} from 'echarts/components'
import { CanvasRenderer } from 'echarts/renderers'
import { 
  SearchIcon, 
  ChevronLeftIcon, 
  ChevronRightIcon,
  UsersIcon,
  MousePointerClickIcon,
  ShoppingCartIcon,
  DollarSignIcon,
  DownloadIcon,
  EyeIcon,
  EditIcon,
  TrashIcon
} from 'lucide-vue-next'

// 默认图片配置
const defaultImages = {
  campaign: 'https://ui-avatars.com/api/?name=Campaign&background=random&color=fff&size=150'
}

// 注册必要的组件
echarts.use([
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  GridComponent,
  DataZoomComponent,
  LineChart,
  BarChart,
  PieChart,
  ScatterChart,
  CanvasRenderer
])

// 状态管理
const isLoading = ref(false)
const searchText = ref('')
const campaignType = ref('')
const status = ref('')
const timeRange = ref('')
const currentPage = ref(1)
const pageSize = ref(10)
const totalCampaigns = ref(100)

// 模拟数据
const mockCampaigns = ref([
  {
    id: 'C1001',
    name: '春季新品促销',
    type: 'discount',
    startTime: '2024-03-01 00:00:00',
    endTime: '2024-03-31 23:59:59',
    status: 'completed',
    budget: 50000,
    spent: 48000,
    reach: 120000,
    clicks: 24000,
    conversions: 1200,
    roi: 2.4,
    target: 'new_users',
    description: '针对春季新品的限时折扣活动',
    image: defaultImages.campaign
  },
  {
    id: 'C1002',
    name: '会员日特惠',
    type: 'member',
    startTime: '2024-03-15 00:00:00',
    endTime: '2024-03-15 23:59:59',
    status: 'completed',
    budget: 30000,
    spent: 28000,
    reach: 80000,
    clicks: 16000,
    conversions: 800,
    roi: 2.8,
    target: 'vip_users',
    description: '会员专属优惠活动',
    image: defaultImages.campaign
  },
  {
    id: 'C1003',
    name: '618大促预热',
    type: 'pre_sale',
    startTime: '2024-05-01 00:00:00',
    endTime: '2024-06-18 23:59:59',
    status: 'active',
    budget: 100000,
    spent: 25000,
    reach: 150000,
    clicks: 30000,
    conversions: 1500,
    roi: 3.0,
    target: 'all_users',
    description: '618购物节预热活动',
    image: defaultImages.campaign
  },
  {
    id: 'C1004',
    name: '品牌周年庆',
    type: 'brand',
    startTime: '2024-04-01 00:00:00',
    endTime: '2024-04-30 23:59:59',
    status: 'scheduled',
    budget: 80000,
    spent: 0,
    reach: 0,
    clicks: 0,
    conversions: 0,
    roi: 0,
    target: 'all_users',
    description: '品牌成立周年庆典活动',
    image: defaultImages.campaign
  },
  {
    id: 'C1005',
    name: '限时秒杀',
    type: 'flash_sale',
    startTime: '2024-03-20 20:00:00',
    endTime: '2024-03-20 22:00:00',
    status: 'cancelled',
    budget: 20000,
    spent: 0,
    reach: 0,
    clicks: 0,
    conversions: 0,
    roi: 0,
    target: 'all_users',
    description: '限时两小时秒杀活动',
    image: defaultImages.campaign
  }
])

// 营销统计数据
const marketingStats = ref({
  totalReach: 350000,
  clickThroughRate: 0.2,
  conversionRate: 0.05,
  roi: 2.8
})

// 营销活动类型分布
const campaignTypeDistribution = ref([
  { type: 'discount', value: 450 },
  { type: 'member', value: 300 },
  { type: 'pre_sale', value: 250 },
  { type: 'brand', value: 150 },
  { type: 'flash_sale', value: 84 }
])

// 营销效果趋势数据
const marketingTrends = ref([
  { date: '2024-03-01', reach: 12000, clicks: 2400, conversions: 120 },
  { date: '2024-03-02', reach: 15000, clicks: 3000, conversions: 150 },
  { date: '2024-03-03', reach: 18000, clicks: 3600, conversions: 180 },
  { date: '2024-03-04', reach: 20000, clicks: 4000, conversions: 200 },
  { date: '2024-03-05', reach: 22000, clicks: 4400, conversions: 220 },
  { date: '2024-03-06', reach: 25000, clicks: 5000, conversions: 250 },
  { date: '2024-03-07', reach: 28000, clicks: 5600, conversions: 280 }
])

// 计算属性
const filteredCampaigns = computed(() => {
  let result = [...mockCampaigns.value]
  
  // 搜索过滤
  if (searchText.value) {
    result = result.filter(campaign => 
      campaign.name.includes(searchText.value) ||
      campaign.description.includes(searchText.value)
    )
  }
  
  // 类型过滤
  if (campaignType.value) {
    result = result.filter(campaign => campaign.type === campaignType.value)
  }
  
  // 状态过滤
  if (status.value) {
    result = result.filter(campaign => campaign.status === status.value)
  }
  
  // 时间范围过滤
  if (timeRange.value) {
    const now = new Date()
    result = result.filter(campaign => {
      const startTime = new Date(campaign.startTime)
      
      switch (timeRange.value) {
        case 'today':
          return startTime.toDateString() === now.toDateString()
        case 'week':
          const weekStart = new Date(now.setDate(now.getDate() - now.getDay()))
          const weekEnd = new Date(weekStart)
          weekEnd.setDate(weekStart.getDate() + 6)
          return startTime >= weekStart && startTime <= weekEnd
        case 'month':
          const monthStart = new Date(now.getFullYear(), now.getMonth(), 1)
          const monthEnd = new Date(now.getFullYear(), now.getMonth() + 1, 0)
          return startTime >= monthStart && startTime <= monthEnd
        case 'quarter':
          const quarter = Math.floor(now.getMonth() / 3)
          const quarterStart = new Date(now.getFullYear(), quarter * 3, 1)
          const quarterEnd = new Date(now.getFullYear(), quarter * 3 + 3, 0)
          return startTime >= quarterStart && startTime <= quarterEnd
        default:
          return true
      }
    })
  }
  
  return result
})

const paginatedCampaigns = computed(() => {
  const start = (currentPage.value - 1) * pageSize.value
  const end = start + pageSize.value
  return filteredCampaigns.value.slice(start, end)
})

const totalPages = computed(() => {
  return Math.ceil(filteredCampaigns.value.length / pageSize.value)
})

// 方法
const handleSearch = () => {
  currentPage.value = 1
}

const handleCampaignTypeChange = () => {
  currentPage.value = 1
}

const handleStatusChange = () => {
  currentPage.value = 1
}

const handleTimeRangeChange = () => {
  currentPage.value = 1
}

const handlePageChange = (page) => {
  currentPage.value = page
}

const handleViewCampaign = (campaign) => {
  console.log('查看活动:', campaign)
}

const handleEditCampaign = (campaign) => {
  console.log('编辑活动:', campaign)
}

const handleDeleteCampaign = (campaign) => {
  console.log('删除活动:', campaign)
}

const handleExportReport = () => {
  console.log('导出报表')
}

// 生命周期钩子
onMounted(() => {
  // 初始化数据
  console.log('营销分析页面已加载')
})

const trendChartRef = ref(null)
const channelChartRef = ref(null)
let trendChart = null
let channelChart = null

// Mock data
const mockTrendData = {
  dates: ['1月', '2月', '3月', '4月', '5月', '6月'],
  values: {
    reach: [1200, 1400, 1800, 2200, 2600, 3000],
    clicks: [300, 400, 500, 600, 700, 800],
    conversions: [50, 70, 90, 120, 150, 180]
  }
}

const mockChannelData = [
  { value: 40, name: '邮件营销' },
  { value: 25, name: '短信营销' },
  { value: 20, name: '社交媒体' },
  { value: 15, name: '广告投放' }
]

// Initialize trend chart
const initTrendChart = () => {
  if (!trendChartRef.value) return
  
  trendChart = echarts.init(trendChartRef.value)
  const option = {
    tooltip: {
      trigger: 'axis'
    },
    legend: {
      data: ['触达人数', '点击数', '转化数']
    },
    xAxis: {
      type: 'category',
      data: mockTrendData.dates
    },
    yAxis: {
      type: 'value'
    },
    series: [
      {
        name: '触达人数',
        type: 'line',
        data: mockTrendData.values.reach
      },
      {
        name: '点击数',
        type: 'line',
        data: mockTrendData.values.clicks
      },
      {
        name: '转化数',
        type: 'line',
        data: mockTrendData.values.conversions
      }
    ]
  }
  trendChart.setOption(option)
}

// Initialize channel chart
const initChannelChart = () => {
  if (!channelChartRef.value) return
  
  channelChart = echarts.init(channelChartRef.value)
  const option = {
    tooltip: {
      trigger: 'item'
    },
    legend: {
      orient: 'vertical',
      left: 'left'
    },
    series: [
      {
        name: '渠道效果',
        type: 'pie',
        radius: '50%',
        data: mockChannelData,
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        }
      }
    ]
  }
  channelChart.setOption(option)
}

// Handle window resize
const handleResize = () => {
  trendChart?.resize()
  channelChart?.resize()
}

onMounted(() => {
  initTrendChart()
  initChannelChart()
  window.addEventListener('resize', handleResize)
})

onUnmounted(() => {
  window.removeEventListener('resize', handleResize)
  trendChart?.dispose()
  channelChart?.dispose()
})
</script>

<style scoped>
@media (max-width: 475px) {
  .grid {
    @apply grid-cols-1;
  }
  table {
    @apply block overflow-x-auto whitespace-nowrap;
  }
}

/* 活动类型标签样式 */
.type-tag {
  @apply px-2 inline-flex text-xs leading-5 font-semibold rounded-full;
}

.type-email {
  @apply bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-400;
}

.type-sms {
  @apply bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-400;
}

.type-social {
  @apply bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-400;
}

.type-ads {
  @apply bg-purple-100 dark:bg-purple-900 text-purple-800 dark:text-purple-400;
}

/* 活动状态标签样式 */
.status-tag {
  @apply px-2 inline-flex text-xs leading-5 font-semibold rounded-full;
}

.status-running {
  @apply bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-400;
}

.status-completed {
  @apply bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-400;
}

.status-scheduled {
  @apply bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-400;
}

.status-cancelled {
  @apply bg-red-100 dark:bg-red-900 text-red-800 dark:text-red-400;
}

/* 操作按钮样式 */
.action-button {
  @apply text-sm font-medium mr-3;
}

.view-button {
  @apply text-blue-600 dark:text-blue-400 hover:text-blue-900 dark:hover:text-blue-300;
}

.edit-button {
  @apply text-green-600 dark:text-green-400 hover:text-green-900 dark:hover:text-green-300;
}

.delete-button {
  @apply text-red-600 dark:text-red-400 hover:text-red-900 dark:hover:text-red-300;
}

/* 分页样式 */
.pagination-button {
  @apply relative inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 text-sm font-medium rounded-md text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600;
}

.pagination-button-active {
  @apply bg-blue-600 text-white border-blue-600;
}

/* 加载动画 */
.loading-spinner {
  @apply animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600;
}
</style> 