/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    min-height: 100vh;
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    color: #2d3748;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    color: #2b6cb0;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: white;
    margin: 0;
    font-size: 2rem;
}

.user-info {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.user-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.user-level {
    background-color: #f6e05e;
    color: #2d3748;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-gold, .user-exp {
    font-weight: bold;
    font-size: 1rem;
}

/* 导航样式 */
.nav {
    margin-bottom: 30px;
    background-color: #edf2f7;
    border-radius: 10px;
    padding: 10px;
    overflow: hidden;
    position: relative;
}

/* 汉堡菜单样式 */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    background-color: #f7fafc;
    transform: scale(1.05);
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #4a5568;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.nav a {
    text-decoration: none;
    color: #4a5568;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.nav a:hover {
    background-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 主内容样式 */
.main {
    margin-bottom: 30px;
}

/* 欢迎区域 */
.welcome-section {
    text-align: center;
    padding: 20px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.welcome-section h2 {
    color: white;
    border-bottom: none;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 按钮点击波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    animation: pulse 1.5s infinite;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: pulse 1.5s infinite;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* 按钮脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    }
    100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
}

/* 连击数变化动画 */
@keyframes comboChange {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.5) rotate(10deg);
        color: #f6e05e;
    }
    100% {
        transform: scale(1) rotate(0deg);
        color: #3182ce;
    }
}

.combo-count.changed {
    animation: comboChange 0.5s ease-out;
}

/* 连击数特效 */
@keyframes comboGlow {
    0% {
        text-shadow: 0 0 5px rgba(49, 130, 206, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(49, 130, 206, 0.8), 0 0 30px rgba(49, 130, 206, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(49, 130, 206, 0.5);
    }
}

.combo-count {
    animation: comboGlow 2s infinite;
}

/* 高连击数特效 */
.combo-count.high-combo {
    color: #ed8936;
    animation: comboGlow 1s infinite, pulse 0.5s infinite;
}

.combo-count.ultra-combo {
    color: #f56565;
    animation: comboGlow 0.8s infinite, pulse 0.3s infinite;
    text-shadow: 0 0 20px rgba(245, 101, 101, 0.8);
}

/* 任务完成庆祝动画 */
@keyframes celebration {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration {
    animation: celebration 0.6s ease-out;
}

/* 粒子效果 */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f6e05e;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 1s ease-out forwards;
}

/* 粒子浮动动画 */
@keyframes particle-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 庆祝动画 */
@keyframes celebration {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* 随机事件卡片样式 */
.random-event-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    animation: slideIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

/* 事件卡片滑入动画 */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 事件卡片背景装饰 */
.random-event-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.event-header h3 {
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.close-event {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-event:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

.event-content {
    position: relative;
    z-index: 1;
}

.event-content h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.event-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.event-actions .btn {
    min-width: 120px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .random-event-card {
        padding: 20px;
        margin: 15px 0;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

/* 卡片样式 */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.challenge-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.challenge-card.small {
    padding: 15px;
}

.challenge-meta {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #718096;
}

.challenge-status {
    background-color: #48bb78;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 任务样式 */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.task-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.task-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.task-card.task-completed {
    background-color: #f0fff4;
    border-color: #48bb78;
    opacity: 0.9;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-status {
    background-color: #ed8936;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.task-status.status-completed {
    background-color: #48bb78;
}

.task-description {
    margin-bottom: 15px;
    color: #4a5568;
}

.task-reward {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #2d3748;
}

/* 表单样式 */
.create-challenge-form {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 2px solid #e2e8f0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4a5568;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

/* 进度条样式 */
.progress-section {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: #4a5568;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background-color: #f7fafc;
    border-radius: 12px;
    border: 2px dashed #cbd5e0;
    margin-bottom: 30px;
}

.empty-state p {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 20px;
}

/* 任务详情样式 */
.task-detail {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

.task-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.task-status-section,
.task-reward-section {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.reward-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.reward-icon {
    font-size: 1.3rem;
}

.complete-task-form,
.task-completed-section {
    background-color: #f0fff4;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #48bb78;
    margin: 30px 0;
    text-align: center;
}

.task-completed-section {
    background-color: #f0fff4;
}

.completed-date {
    color: #718096;
    font-style: italic;
    margin-top: 15px;
}

.related-challenge {
    margin-top: 30px;
}

/* 提示样式 */
.tips {
    background-color: #fffaf0;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #ed8936;
    margin-top: 30px;
}

.tips h3 {
    color: #dd6b20;
    margin-bottom: 15px;
}

.tips ul {
    list-style-position: inside;
    color: #718096;
}

.tips li {
    margin-bottom: 8px;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 2px solid #e2e8f0;
    color: #718096;
    font-size: 0.9rem;
    position: relative;
}

.footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 管理入口样式 */
.admin-entry {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.admin-link {
    font-size: 0.8rem;
    color: #718096;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
    font-weight: normal;
}

.admin-link:hover {
    opacity: 1;
    color: #667eea;
    text-decoration: underline;
}

/* 集市样式 */
.market-section {
    margin-bottom: 40px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.item-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.item-card.game-item {
    border-color: #667eea;
    background-color: #f7fafc;
}

.item-card.real-item {
    border-color: #ed8936;
    background-color: #fffaf0;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.item-price {
    font-weight: bold;
    color: #2d3748;
    font-size: 1.1rem;
}

.item-info {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 0.9rem;
    color: #718096;
}

.item-effect {
    background-color: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.item-effect h5 {
    margin-bottom: 10px;
    color: #2b6cb0;
}

.item-effect ul {
    list-style-position: inside;
    color: #4a5568;
}

.item-effect li {
    margin-bottom: 5px;
}

.item-note {
    background-color: rgba(237, 137, 54, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ed8936;
}

.market-tips {
    background-color: #edf2f7;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}

.market-tips h3 {
    color: #2b6cb0;
    margin-bottom: 15px;
}

.market-tips ul {
    list-style-position: inside;
    color: #718096;
}

.market-tips li {
    margin-bottom: 8px;
}

/* 背包样式 */
.inventory-section {
    margin-bottom: 40px;
}

.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.inventory-item {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.inventory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.item-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.item-bought-at {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #718096;
    text-align: right;
    font-style: italic;
}

.inventory-tips {
    background-color: #edf2f7;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}

.inventory-tips h3 {
    color: #2b6cb0;
    margin-bottom: 15px;
}

.inventory-tips ul {
    list-style-position: inside;
    color: #718096;
}

.inventory-tips li {
    margin-bottom: 8px;
}

/* 购买记录样式 */
.purchases-section {
    margin-bottom: 40px;
}

.purchases-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.purchase-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.purchase-card.game-purchase {
    border-color: #667eea;
    background-color: #f7fafc;
}

.purchase-card.real-purchase {
    border-color: #ed8936;
    background-color: #fffaf0;
}

.purchase-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.purchase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.purchase-info h4 {
    margin-bottom: 10px;
}

.purchase-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #718096;
    flex-wrap: wrap;
}

.purchase-status {
    background-color: #48bb78;
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    align-self: flex-start;
}

.purchase-description {
    margin-top: 15px;
    color: #4a5568;
    line-height: 1.6;
}

/* 购买统计样式 */
.purchases-stats {
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stat-card h4 {
    color: #718096;
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2b6cb0;
}

.purchases-tips {
    background-color: #edf2f7;
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}

.purchases-tips h3 {
    color: #2b6cb0;
    margin-bottom: 15px;
}

.purchases-tips ul {
    list-style-position: inside;
    color: #718096;
}

.purchases-tips li {
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        min-height: 100vh;
    }
    
    /* 标题大小调整 */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* 头部响应式 */
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    /* 用户信息响应式 */
    .user-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 12px;
    }
    
    .user-name {
        font-size: 1rem;
    }
    
    .user-level {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
    
    .user-stats {
        display: flex;
        gap: 10px;
        margin-top: 8px;
    }
    
    /* 汉堡菜单响应式 */
    .hamburger-menu {
        display: flex;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
        padding: 15px 0;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav a {
        width: 100%;
        max-width: 250px;
        padding: 10px 16px;
        font-size: 1rem;
    }
    
    /* 网格布局响应式 */
    .challenges-grid,
    .items-grid,
    .inventory-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 卡片间距调整 */
    .challenge-card,
    .task-card,
    .item-card,
    .inventory-item {
        margin-bottom: 15px;
    }
    
    /* 任务信息响应式 */
    .task-info,
    .purchase-header {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 15px;
    }
    
    /* 表单响应式 */
    .form-actions,
    .item-actions {
        flex-direction: column;
    }
    
    /* 按钮响应式 */
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* 购买元数据响应式 */
    .purchase-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    /* 连击系统响应式 */
    .combo-section {
        padding: 20px;
        margin: 20px 0;
    }
    
    .combo-count {
        font-size: 3rem;
    }
    
    .combo-label {
        font-size: 1rem;
    }
    
    .combo-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    /* 受伤上报表单响应式 */
    .report-injury-card {
        padding: 20px;
    }
    
    .report-injury-form {
        gap: 15px;
    }
    
    /* 导航条固定 */
    .nav {
        position: sticky;
        top: 10px;
        z-index: 100;
    }
    
    /* 减少移动端滚动区域 */
    .welcome-section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    /* 进度条响应式 */
    .progress-bar {
        height: 18px;
    }
    
    /* 减少内边距 */
    .main {
        padding: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.challenge-card,
.task-card,
.welcome-section {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}