* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.activity-card {
    background: white;
    margin: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.activity-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-content {
    padding: 15px;
}

.activity-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.activity-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 12px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: #667eea;
}

.btn-success {
    background: #28a745;
}

.btn-block {
    display: block;
    width: 100%;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.member-item {
    text-align: center;
    width: 60px;
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #667eea;
}

.member-name {
    font-size: 12px;
    margin-top: 5px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #667eea;
    transition: width 0.3s;
}

.share-section {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    margin: 15px;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.share-link {
    background: white;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    word-break: break-all;
    font-size: 14px;
}

.qr-code {
    width: 200px;
    height: 200px;
    margin: 10px auto;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 加载相关样式 */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-login {
    text-align: center;
    padding: 40px 20px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

/* 登录相关样式 */
.manual-login-section {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    margin: 20px;
    border-radius: 10px;
    border: 1px solid #e1e5e9;
}

.wx-login-btn {
    background: linear-gradient(135deg, #09bb07 0%, #08a806 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(9, 187, 7, 0.3);
}

.wx-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 187, 7, 0.4);
}

.wx-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background: white;
    border-radius: 2px;
    position: relative;
}

.wx-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: #09bb07;
    border-radius: 1px;
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: #4299e1;
    color: white;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: slideDown 0.3s ease;
}

.message-toast.error {
    background: #f56565;
}

.message-toast.success {
    background: #48bb78;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 表单元素样式 */
input, textarea, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        margin: 0;
    }
    
    .header {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .activity-card {
        margin: 10px;
        border-radius: 8px;
    }
    
    .manual-login-section {
        margin: 15px;
        padding: 40px 15px;
    }
    
    .wx-login-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .activity-banner {
        height: 150px;
    }
    
    .share-section {
        margin: 10px;
        padding: 15px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

/* 美化滚动条 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-10 {
    padding: 10px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 颜色工具类 */
.text-muted {
    color: #666;
}

.text-primary {
    color: #667eea;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.bg-light {
    background-color: #f8f9fa;
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease;
}

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

.slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}