/**
 * H5抽奖系统 - 主样式表
 */

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #ff6b9d20 0%, #ffd70010 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 顶部装饰 ========== */
.header {
    position: relative;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 50%, #e91e63 100%);
    min-height: 200px;
    padding-bottom: 20px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.sparkle {
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 40px;
}

.gift-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.gift-icon svg {
    width: 40px;
    height: 40px;
    color: #e91e63;
}

#siteLogoImg {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

h1 {
    color: white;
    font-size: 36px;
    margin: 15px 0 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.participant-count {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ========== 主要内容区 ========== */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    margin-top: -40px;
    position: relative;
    z-index: 20;
}

/* ========== 转盘容器 ========== */
.wheel-section {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto;
}

/* 指针 */
.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(233, 30, 99, 0.3));
}

.pointer-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 45px solid #e91e63;
}

/* 转盘外圈 */
.wheel-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700, #ffed4e, #ffd700);
    padding: 8px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 10px 60px rgba(255, 215, 0, 0.6); }
}

.wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 6px;
}

/* 转盘主体 */
.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* 奖品文字 */
.prize-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    width: 60px;
    text-align: center;
    transform-origin: center;
}

.prize-icon {
    font-size: 16px;
    margin-bottom: 2px;
}

/* 中心圆点 */
.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffed4e, #ffd700, #ffc107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.center-circle svg {
    width: 30px;
    height: 30px;
    color: white;
}

/* ========== 抽奖按钮 ========== */
.spin-button {
    margin-top: 30px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    border: none;
    padding: 16px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== 奖品列表 ========== */
.prizes-section {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-radius: 12px;
    border: 1px solid #ffd70030;
}

.prize-item-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border-radius: 12px;
    border: 1px solid #ffd70030;
}

.prize-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.prize-name-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

.prize-item-info h4 {
    font-size: 14px;
    color: #333;
    margin: 0;
}

.prize-description {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin: 0;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

/* ========== 抽奖记录 ========== */
.history-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.history-list {
    max-height: none;
    overflow-y: visible;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #fff9e6, transparent);
    border-radius: 12px;
    border: 1px solid #ffd70030;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: #ffd70060;
}

.history-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.history-item-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-item-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.history-item-user {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    flex: 0 0 auto;
    text-align: center;
    padding: 0 30px;
}

.history-item-time {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding-right: 5px;
}

.history-item-time svg {
    width: 14px;
    height: 14px;
}

/* 移动端和微信内置浏览器优化 */
@media screen and (max-width: 768px) {
    .history-section {
        padding: 24px 18px;
        border-radius: 16px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 14px;
    }
    
    .history-list {
        max-height: none;
    }
    
    .history-item {
        padding: 12px 14px;
        margin-bottom: 10px;
        border-radius: 10px;
    }
    
    .history-item-left {
        flex: 1;
        min-width: 0;
        gap: 10px;
    }
    
    .history-item-icon {
        font-size: 24px;
        flex-shrink: 0;
    }
    
    .history-item-name {
        font-size: 15px;
        max-width: none;
        flex: 1;
    }
    
    .history-item-user {
        flex: 0 0 auto;
        text-align: right;
        padding: 0 10px;
        font-size: 13px;
        order: 2;
    }
    
    .history-item-time {
        flex: 0 0 auto;
        font-size: 12px;
        order: 3;
        padding-right: 0;
    }
    
    .history-item-time svg {
        width: 12px;
        height: 12px;
    }
}

/* 小屏幕手机优化 */
@media screen and (max-width: 480px) {
    .history-section {
        padding: 18px 14px;
        border-radius: 12px;
    }
    
    .history-list {
        max-height: none;
    }
    
    .history-item {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    
    .history-item-left {
        gap: 8px;
    }
    
    .history-item-icon {
        font-size: 22px;
    }
    
    .history-item-name {
        font-size: 14px;
    }
    
    .history-item-user {
        font-size: 12px;
        padding: 0 16px;
        order: 2;
    }
    
    .history-item-time {
        font-size: 11px;
        gap: 3px;
        order: 3;
    }
    
    .history-item-time svg {
        width: 11px;
        height: 11px;
    }
}

.empty-history {
    text-align: center;
    padding: 30px;
    color: #ccc;
}

.empty-history svg {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ========== 活动规则 ========== */
.rules-section {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    font-size: 12px;
    color: #666;
    line-height: 1.8;
}

.rules-section h3 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

/* ========== 活动规则详细样式 ========== */

/* 倒计时区域 */
.countdown-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-title {
    font-size: 16px;
    margin-bottom: 8px;
}

.countdown-timer {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 活动时间样式 */
.activity-time {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 14px;
    color: #e74c3c;
    font-weight: bold;
}

/* 规则标题样式 */
.rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 15px;
}

.rules-header img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.rules-page-title {
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    flex-grow: 1;
    font-weight: bold;
}

/* 规则内容样式 */
.rules-detail-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.rule-item {
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
    line-height: 1.8;
    font-size: 13px;
}

.rule-item::before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

.prize-list-section {
    margin: 15px 0;
    padding: 12px;
    background-color: #fef9f9;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
}

.prize-list-item {
    margin: 8px 0;
    font-weight: bold;
    color: #c0392b;
    line-height: 1.6;
    font-size: 13px;
}

/* 主办单位样式 */
.organizer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 15px;
}

.organizer-section img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.organizer-title {
    font-size: 18px;
    color: #2c3e50;
    text-align: center;
    flex-grow: 1;
    font-weight: bold;
}

.organizer-info {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2px;
}

.info-item {
    margin: 8px 0;
    line-height: 1.8;
    font-size: 13px;
}

.disclaimer-text {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 12px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .countdown-timer {
        font-size: 18px;
    }
    
    .rules-page-title, .organizer-title {
        font-size: 16px;
    }
    
    .rules-header img, .organizer-section img {
        width: 28px;
        height: 28px;
    }
    
    .rules-detail-content {
        padding: 15px;
    }
    
    .rule-item {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 12px;
    }
    
    .countdown-title {
        font-size: 14px;
    }
    
    .countdown-timer {
        font-size: 16px;
    }
    
    .activity-time {
        font-size: 12px;
        padding: 10px;
    }
    
    .rules-header {
        margin: 20px 0 12px;
    }
    
    .rules-detail-content {
        padding: 12px;
    }
    
    .prize-list-section {
        padding: 10px;
    }
    
    .organizer-info {
        padding: 12px;
    }
}

/* ========== 中奖弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 25px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    animation: bounceIn 0.5s ease;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    height: 150px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.modal-gift {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: white;
}

.modal-body {
    padding: 30px 25px;
    text-align: center;
}

.modal-title {
    font-size: 24px;
    color: #e91e63;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #666;
    margin-bottom: 20px;
}

.modal-prize {
    background: linear-gradient(135deg, #fff9e6, #fff3cc);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
}

.modal-prize-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.modal-prize-name {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.modal-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

/* ========== 彩带动画 ========== */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 1001;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* 信息填写表单样式 */
.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required-mark {
    color: #e91e63;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* 桌面浏览器优化 */
@media (min-width: 769px) {
    .modal-overlay {
        padding: 40px;
    }
    
    .modal-content {
        max-width: 500px;
    }
    
    .modal-body {
        padding: 35px 30px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 15px;
    }
    
    .modal-content {
        max-width: 350px;
        width: 95%;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 320px;
        width: 100%;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-subtitle {
        font-size: 13px;
    }
}

/* 单选按钮组样式 - 每个选项占一行 */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
}

.radio-option:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #667eea;
    font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background-color: #f0f3ff;
}

.radio-label {
    font-size: 14px;
    color: #333;
    user-select: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .form-group input {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* ========== 响应式设计 ========== */
@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    .wheel-container {
        max-width: 350px;
    }

    .prizes-grid {
        grid-template-columns: 1fr;
    }
}

/* PC端标题下方添加间距 */
@media (min-width: 769px) {
    .header {
        height: 250px;
    }
}

/* ========== 页脚样式 ========== */
.footer {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 50%, #e91e63 100%);
    padding: 20px;
    margin-top: -15px;
    box-shadow: 0 -5px 20px rgba(233, 30, 99, 0.2);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.footer a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer a:hover {
    color: #fff;
    border-bottom-color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 移除备案号链接的下划线 */
#footerIcpLink {
    border-bottom: none !important;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .footer {
        padding: 15px;
    }
    
    .footer p {
        font-size: 12px;
    }
}

/* ========== 活动规则页面样式 ========== */

/* 活动规则容器 */
.rules-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 倒计时区域 */
.countdown-container {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 10px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.countdown-timer {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 活动时间样式 */
.activity-time {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 16px;
    color: #e74c3c;
    font-weight: bold;
}

/* 规则标题样式 */
.rules-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 20px;
}

.rules-header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.rules-page-title {
    font-size: 22px;
    color: #2c3e50;
    text-align: center;
    flex-grow: 1;
}

/* 规则内容样式 */
.rules-detail-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.rule-item {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    line-height: 1.8;
}

.rule-item::before {
    content: "•";
    color: #e74c3c;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 18px;
}

.prize-list-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #fef9f9;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
}

.prize-list-item {
    margin: 10px 0;
    font-weight: bold;
    color: #c0392b;
    line-height: 1.6;
}

/* 主办单位样式 */
.organizer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0 20px;
}

.organizer-section img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.organizer-title {
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    flex-grow: 1;
}

.organizer-info {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-item {
    margin: 10px 0;
    line-height: 1.8;
}

.disclaimer-text {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

/* 查看规则按钮 */
.view-rules-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 15px;
}

.view-rules-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.view-rules-btn svg {
    width: 18px;
    height: 18px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .rules-page-container {
        padding: 10px;
    }
    
    .countdown-timer {
        font-size: 20px;
    }
    
    .rules-page-title, .organizer-title {
        font-size: 18px;
    }
    
    .rules-header img, .organizer-section img {
        width: 30px;
        height: 30px;
    }
    
    .rules-detail-content {
        padding: 20px 15px;
    }
    
    .rule-item {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        padding: 15px;
    }
    
    .countdown-title {
        font-size: 16px;
    }
    
    .countdown-timer {
        font-size: 18px;
    }
    
    .activity-time {
        font-size: 14px;
        padding: 12px;
    }
}
