﻿:root {
    --primary-red-11: #e6222d;
    --dark-red-11: #b31d23;
    --gold-light-11: #fef1cc;
    --gold-main-11: #fbd67a;
    --gold-dark-11: #d4a017;
    --white-11: #ffffff;
}

* { box-sizing: border-box; }

body {
    /* background-color: #7d0a0a; */
    /* background-image: radial-gradient(circle at top, #b31d23 0%, #7d0a0a 100%); */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 15px;
    color: #4a2d00;
}

/* 主容器 */
.container-rule {
    max-width: 1200px;
    margin: 0 auto;
    border: 3px solid var(--gold-main-11);
    border-radius: 20px;
    background-color: var(--gold-light-11);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* 头部 Banner */
.header {
    background: linear-gradient(180deg, var(--primary-red-11), var(--dark-red-11));
    padding: 30px 20px;
    text-align: center;
    color: var(--gold-main-11);
    border-bottom: 3px solid var(--gold-main-11);
}
.header h1 {
    font-size: 36px;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #5a0000;
}
.header p {
    margin: 10px 0 0;
    font-weight: bold;
    background: rgba(0,0,0,0.2);
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 16px;
}

/* 核心板块样式 */
.section {
    padding: 20px 15px;
}

.section-title {
    display: flex;
    align-items: center;
    background: var(--primary-red-11);
    color: white;
    padding: 8px 15px;
    border-radius: 30px 5px 30px 5px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    width: fit-content;
    box-shadow: 3px 3px 0 var(--gold-dark-11);
}

/* 转盘视觉区 */
.wheel-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.3);
    border-radius: 15px;
    padding: 20px 0;
}
.wheel-visual {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 8px solid var(--gold-main-11);
    background: conic-gradient(
        #fff 0deg 45deg, #fbd67a 45deg 90deg, 
        #fff 90deg 135deg, #fbd67a 135deg 180deg,
        #fff 180deg 225deg, #fbd67a 225deg 270deg,
        #fff 270deg 315deg, #fbd67a 315deg 360deg
    );
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}
.wheel-pointer {
    width: 80px;
    height: 80px;
    background: var(--primary-red-11);
    border: 4px solid #fff;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    z-index: 2;
    cursor: pointer;
    transition: transform 0.1s;
}
.wheel-pointer:active { transform: scale(0.9); }
.wheel-pointer::after {
    content: '';
    position: absolute;
    top: -15px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid var(--primary-red-11);
}

/* 积分任务卡片 */
.task-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.task-item {
    background: white;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.task-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-light-11);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    font-size: 20px;
}
.task-info h4 { margin: 0; font-size: 15px; color: var(--dark-red-11); }
.task-info p { margin: 2px 0 0; font-size: 12px; color: #666; }

/* 奖品展示网格 */
.prize-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.prize-card {
    background: white;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    font-size: 14px;
    border: 1px solid var(--gold-main-11);
}
.prize-card img { width: 30px; margin-bottom: 5px; }

/* 兑换表格 */
.exchange-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}
.exchange-table th { background: #fdf2d5; padding: 12px; }
.exchange-table td { padding: 12px; text-align: center; border-bottom: 1px solid #eee; }

/* 注意事项 */
.notice-box {
    background: #fff5f5;
    border: 1px dashed var(--primary-red-11);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-slogan {
    text-align: center;
    color: var(--white-11);
    margin: 20px 0;
    font-size: 13px;
    opacity: 0.8;
}

/* 移动端适配：横向排列变成竖向排列 */
@media (max-width: 480px) {
    .prize-grid { grid-template-columns: repeat(2, 1fr); }
    .header h1 { font-size: 28px; }
}