* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
}

header h1 {
    font-size: 2em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.subtitle {
    font-size: 0.9em;
    opacity: 0.9;
}

main {
    padding: 15px 20px;
}

.reward-section {
    margin-bottom: 20px;
}

.reward-section:last-child {
    margin-bottom: 0;
}

.new-player-section {
    margin-bottom: 15px;
}

.compact-grid .reward-item {
    padding: 10px;
    gap: 8px;
}

.compact-grid .reward-icon {
    font-size: 1.8em;
    min-width: 35px;
}

.compact-grid .reward-content h3 {
    font-size: 0.85em;
    margin-bottom: 3px;
}

.compact-grid .reward-amount {
    font-size: 0.8em;
}

.section-title {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.section-title .icon {
    font-size: 1em;
}

.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.reward-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reward-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.reward-item.highlight {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border-color: #f39c12;
}

.reward-item.currency {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-color: #00b894;
}

.reward-icon {
    font-size: 2em;
    min-width: 40px;
    text-align: center;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.2));
}

.reward-content {
    flex: 1;
    min-width: 0;
}

.reward-content h3 {
    font-size: 0.9em;
    margin-bottom: 4px;
    color: #2d3436;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.reward-amount {
    font-size: 0.85em;
    color: #667eea;
    font-weight: bold;
}

.reward-item.highlight .reward-amount {
    color: #d63031;
}

.reward-item.currency .reward-amount {
    color: #00b894;
}

.sponsor-notice {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 15px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
}

.notice-icon {
    font-size: 1.3em;
    animation: bounce 1s infinite;
}

.notice-text strong {
    color: #ffeaa7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

footer {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-size: 0.85em;
}

.sponsor-notice-text {
    margin-top: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 8px;
    color: #e65100;
    font-size: 0.9em;
    font-weight: 500;
    border-left: 4px solid #ff9800;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.modal-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.modal-item:hover {
    transform: translateX(5px);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.item-name {
    font-size: 1em;
    color: #2d3436;
    font-weight: 600;
    flex: 1;
}

.item-amount {
    font-size: 1em;
    color: #667eea;
    font-weight: bold;
    margin-left: 15px;
}

/* 赞助等级样式 */
.sponsor-level {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #dee2e6;
}

.sponsor-level:last-child {
    margin-bottom: 0;
}

.level-title {
    font-size: 1.2em;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    font-weight: bold;
}

/* 宠物信息样式 */
.pet-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

/* 道具说明样式 */
.item-description {
    padding: 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 15px;
    border-left: 5px solid #ff9800;
}

.item-description p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.8;
    color: #e65100;
    font-weight: 500;
    text-align: center;
    white-space: pre-line;
}

.pet-attribute {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 10px;
    border-left: 4px solid #2196f3;
}

.attr-label {
    font-size: 0.95em;
    color: #1976d2;
    font-weight: 600;
}

.attr-value {
    font-size: 1em;
    color: #0d47a1;
    font-weight: bold;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2em;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-item {
        padding: 12px;
    }
    
    .item-name,
    .item-amount {
        font-size: 0.9em;
    }
    
    .pet-info {
        grid-template-columns: 1fr;
    }
    
    .sponsor-level {
        padding: 15px;
    }
    
    .level-title {
        font-size: 1em;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .reward-grid,
    .compact-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    main {
        padding: 15px;
    }
    
    .notice-content {
        font-size: 0.95em;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    .reward-item {
        padding: 20px;
    }
    
    .reward-icon {
        font-size: 2.5em;
        min-width: 50px;
    }
}
