/* 活动列表页面样式 */
.activities-header { position: relative; padding: 20px; text-align: center; background: linear-gradient(135deg, var(--primary) 0%, #1e6e3f 100%); color: white; }
.activities-header h1 { margin: 0 0 5px; font-size: 24px; }
.activities-header .subtitle { margin: 0; font-size: 14px; opacity: 0.9; }
.activities-header .btn-create-activity { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); padding: 8px 14px; background: rgba(255,255,255,0.25); color: white; border: 1px solid rgba(255,255,255,0.6); border-radius: 20px; font-size: 14px; text-decoration: none; transition: all 0.3s; }
.activities-header .btn-create-activity:hover { background: rgba(255,255,255,0.4); }

.featured-activities { padding: 16px; }
.featured-activities h2 { margin: 0 0 12px; font-size: 17px; color: #333; }
.carousel-container { position: relative; overflow: hidden; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { flex-shrink: 0; width: 85%; max-width: 320px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: inherit; display: block; }
.carousel-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(-2px); }
.carousel-item-image { width: 100%; height: 140px; overflow: hidden; background: linear-gradient(135deg,#e8f5f1,#f5ecd8); }
.carousel-item-image img { width: 100%; height: 100%; object-fit: cover; }
.carousel-item-content { padding: 12px; }
.carousel-item-content h3 { margin: 0 0 6px; font-size: 15px; color: #333; font-weight: 600; }
.carousel-item-content .meta { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-bottom: 6px; }
.carousel-item-content .price { font-size: 16px; color: var(--primary); font-weight: 700; }
.carousel-item-content .detail { display: flex; gap: 10px; font-size: 11px; color: #999; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: rgba(46,139,87,0.85); color: white; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 10; line-height: 1; }
.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

.activity-tabs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid #e0e0e0; scrollbar-width: none; }
.activity-tabs::-webkit-scrollbar { display: none; }
.activity-tabs .tab-btn { flex-shrink: 0; padding: 8px 14px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 20px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.3s ease; }
.activity-tabs .tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.activities-filter-bar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 12px 16px; background: #f9f9f9; border-bottom: 1px solid #e0e0e0; }
.activities-filter-bar .filter-group { display: flex; flex-direction: column; }
.activities-filter-bar .filter-group label { font-size: 11px; font-weight: 600; margin-bottom: 4px; color: #666; }
.activities-filter-bar .filter-group select { padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; background: white; cursor: pointer; }
@media (min-width: 600px) { .activities-filter-bar { grid-template-columns: repeat(4, 1fr); } }

.activities-list { padding: 16px; }
.activities-list .activity-card { display: flex; gap: 12px; background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; padding: 12px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; color: inherit; }
.activities-list .activity-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.activities-list .activity-image { flex-shrink: 0; width: 110px; height: 110px; border-radius: 8px; overflow: hidden; background: #f0f0f0; position: relative; }
.activities-list .activity-image img { width: 100%; height: 100%; object-fit: cover; }
.activities-list .activity-type-badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,0.6); color: white; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.activities-list .difficulty-badge { position: absolute; top: 6px; right: 6px; background: var(--accent); color: var(--text); padding: 2px 6px; border-radius: 4px; font-size: 10px; }
.activities-list .activity-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.activities-list .activity-name { margin: 0 0 6px; font-size: 15px; color: #333; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activities-list .activity-meta { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-bottom: 6px; }
.activities-list .activity-details { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; font-size: 12px; color: #666; }
.activities-list .detail-item { display: flex; align-items: center; gap: 4px; }
.activities-list .progress-bar { width: 100%; height: 4px; background: #e0e0e0; border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.activities-list .progress-fill { height: 100%; background: var(--primary); transition: width 0.3s ease; }
.activities-list .progress-text { font-size: 11px; color: #999; margin-bottom: 8px; }
.activities-list .activity-actions { display: flex; gap: 8px; }
.activities-list .btn-small { flex: 1; padding: 6px 10px; border: none; border-radius: 6px; font-size: 12px; cursor: pointer; transition: all 0.3s ease; }
.activities-list .btn-small.btn-primary { background: var(--primary); color: white; }
.activities-list .btn-small:not(.btn-primary) { background: #f5f5f5; color: #333; border: 1px solid #e0e0e0; }

.loading-indicator { text-align: center; padding: 30px 20px; }
.loading-indicator .spinner { display: inline-block; width: 36px; height: 36px; border: 3px solid #f3f3f3; border-top: 3px solid var(--primary); border-radius: 50%; animation: activities-spin 1s linear infinite; }
@keyframes activities-spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-indicator p { margin-top: 10px; color: #666; font-size: 14px; }
.activities-empty-state { text-align: center; padding: 50px 20px; color: #999; }
.activities-empty-state p { margin-bottom: 16px; font-size: 15px; }
.activities-load-more { width: 100%; margin: 16px 0; padding: 12px; background: #f5f5f5; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; cursor: pointer; }
