/* 淮南市活动报名网站样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(102, 126, 234, 0.3);
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 活动列表样式 */
.activity-list {
    padding: 10px;
}

.activity-card {
    background: white;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(230,230,230,0.8);
    position: relative;
    padding-bottom: 30px;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.activity-card:active {
    transform: scale(0.98);
}

.activity-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.activity-cover.fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.activity-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.activity-info {
    padding: 20px;
    padding-bottom: 20px;
}

.activity-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    line-height: 1.4;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.activity-fee {
    color: #e74c3c;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.activity-participants {
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
}

.activity-time {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.activity-time::before {
    content: "📅";
    margin-right: 8px;
}

.activity-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.activity-location::before {
    content: "📍";
    margin-right: 8px;
}

/* 查看详情按钮 */
.view-details-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.3);
    position: absolute;
    bottom: 25px;
    right: 20px;
    z-index: 10;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.view-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.view-details-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
}


/* 活动详情页样式 */
.detail-cover {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.detail-content {
    padding: 20px;
}

.detail-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 600;
    color: #667eea;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.detail-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.section-content {
    color: #666;
    line-height: 1.6;
}

/* 参与须知特殊样式 */
.detail-section .section-content {
    padding-bottom: 20px;
}

/* 参与须知最后一项下方额外间距 */
.detail-section:last-of-type .section-content {
    padding-bottom: 50px;
}

/* 为固定底部按钮留出空间 */
.detail-content {
    padding-bottom: 100px;
}

.location-link {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-link:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 414px;
    padding: 20px 16px;
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

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

.modal-content {
    background: white;
    margin: 20px;
    padding: 24px;
    border-radius: 12px;
    max-width: 350px;
    width: 100%;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.modal-body {
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 支付成功页样式 */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.qr-code {
    max-width: 200px;
    margin: 20px auto;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .activity-card {
        margin: 8px;
    }
    
    .detail-content {
        padding: 16px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 增强的地址导航样式 */
.location-enhanced {
    background: linear-gradient(135deg, #e6f7ff, #f0f9ff);
    border: 1px solid #91d5ff;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.location-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.location-enhanced:active {
    transform: translateY(0);
}

/* 微信检测提示样式 */
.wechat-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.guide-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    margin: 20px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

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

/* 地图选择弹窗样式 */
.map-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-selection-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 360px;
    margin: 20px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
}

.map-option-btn {
    background: linear-gradient(135deg, #1677ff, #4096ff);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.map-option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}

.map-option-btn:active {
    transform: translateY(0);
}

.map-option-btn.apple {
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
}

.map-option-btn.baidu {
    background: linear-gradient(135deg, #3385FF, #1677FF);
}

.map-option-btn.tencent {
    background: linear-gradient(135deg, #1AAD19, #1afa29);
}

.map-option-btn.web {
    background: linear-gradient(135deg, #666, #999);
}

/* 支付环境检测样式 */
.payment-env-warning {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    color: #d48806;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-env-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 12px;
    margin: 16px 0;
    color: #389e0d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .guide-content,
    .map-selection-content {
        margin: 15px;
        padding: 20px;
    }
    
    .map-option-btn {
        padding: 16px 20px;
        font-size: 18px;
    }
}