* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% auto;
    background-color: #F0F0F0;
    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    /*background: linear-gradient(to bottom, #1C62EC 0%, #e0e0e0 70%);*/
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 8px;
    background: transparent;
    flex-shrink: 0;
    z-index: 10;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 22px;
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.search-icon {
    font-size: 16px;
    margin-right: 8px;
    color: #999;
    line-height: 1;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
    line-height: 1.5;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background-color: #2196F3;
    color: #ffffff;
    border: none;
    border-radius: 18px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.25);
    transition: background-color 0.2s;
    font-weight: 500;
}

.search-btn:active {
    background-color: #1976D2;
}

/* 列表滚动容器 */
.list-scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 活动列表样式 */
.activity-list {
    padding: 0 15px 15px;
}

.activity-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.activity-link:last-child {
    margin-bottom: 0;
}

.activity-link:active {
    transform: scale(0.98);
    opacity: 0.95;
}

.activity-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    gap: 12px;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.activity-link:hover .activity-item {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.activity-left-icon {
    flex-shrink: 0;
    width: 4px;
    height: 30%;
    position: absolute;
    left: 0;
    top: 35%;
    border-radius: 10px 0 0 0;
    overflow: hidden;
}

.activity-left-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activity-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.activity-thumb img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.activity-title {
    font-size: 15px;
    font-weight: 400;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    margin-top: 0;
    min-height: calc(1.5em * 2);
    height: calc(1.5em * 2);
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.activity-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.4;
}


.status-waited {
    background-color: #98D2D9;
    color: #ffffff;
}

.status-going {
    background-color: #1C62EC;
    color: #ffffff;
}

.status-ended {
    background-color: grey;
    color: #000000;
}
.status-disabled {
    background-color: #EBEC98;
    color: #000000;
}
.activity-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.4;
}

