:root {
    --primary-color: #4a8bf5;
    --primary-hover: #357ae8;
    --bg-light: #f5f7fa;
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --border-color: #ebeef5;
    --border-radius: 6px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f7f8fa;
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { font-size: 20px; font-weight: bold; color: var(--primary-color); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 16px; padding: 10px 0; border-bottom: 2px solid transparent; transition: all 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

.banner {
    background: linear-gradient(135deg, #4a8bf5 0%, #2b68c9 100%);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
}

.banner h1 { font-size: 28px; margin-bottom: 20px; font-weight: 500; letter-spacing: 2px; }

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 24px;
    padding: 4px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 15px;
}

.search-box button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.2s;
}

.search-box button:hover { background: var(--primary-hover); }

.main-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

.filter-section {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 16px;
}

.filter-row:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.filter-label { font-size: 15px; font-weight: bold; width: 60px; min-width: 60px; padding-top: 6px; color: var(--text-muted); }
.filter-content { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }

.filter-tag {
    padding: 4px 14px;
    font-size: 14px;
    color: var(--text-main);
    background: transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-tag:hover { color: var(--primary-color); background-color: #eef4fe; }
.filter-tag.active { color: #fff; background-color: var(--primary-color); }
.filter-content.limit-height { max-height: 34px; overflow: hidden; }
.toggle-btn { margin-left: 10px; padding-top: 4px; color: var(--primary-color); cursor: pointer; font-size: 14px; user-select: none; }

.content-layout { display: flex; gap: 20px; align-items: flex-start; }

.left-main {
    flex: 1;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    padding: 20px;
    min-width: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title { font-size: 18px; font-weight: bold; border-left: 4px solid var(--primary-color); padding-left: 10px; }
.total-count { font-size: 13px; color: var(--text-light); }
.total-results-value { color: var(--primary-color); font-weight: bold; }

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.list-item:hover { background-color: #fafafa; }
.list-item:last-child { border-bottom: none; }

.item-info { flex: 1; margin-right: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-title { font-size: 16px; color: var(--text-main); font-weight: 500; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.item-title:hover { color: var(--primary-color); }

.item-meta { margin-top: 8px; font-size: 13px; color: var(--text-light); display: flex; gap: 15px; align-items: center; }
.tag-status { padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.status-active { background: #eef4fe; color: var(--primary-color); border: 1px solid #dcdfe6; }
.status-ended { background: #f4f4f5; color: #909399; }
.item-date { width: 90px; text-align: right; color: var(--text-light); font-size: 14px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.page-btn { padding: 6px 12px; border: 1px solid var(--border-color); background: #fff; border-radius: 4px; cursor: pointer; color: var(--text-muted); }
.page-btn:hover, .page-btn.active { border-color: var(--primary-color); color: var(--primary-color); }
.page-btn.active { background: var(--primary-color); color: #fff; }

.right-sidebar { width: 300px; display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; }
.sidebar-card { background: #fff; border-radius: var(--border-radius); box-shadow: 0 2px 10px rgba(0,0,0,0.02); padding: 20px; }
.sidebar-list li { margin-bottom: 12px; font-size: 14px; }
.sidebar-list li a { color: var(--text-main); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sidebar-list li a:hover { color: var(--primary-color); }
.homepage-subscribe-card {
    background: linear-gradient(135deg, #eef4fe 0%, #dbe7fb 100%);
    border: none;
    text-align: center;
    box-shadow: none;
}

.homepage-subscribe-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 14px;
}

.homepage-subscribe-desc {
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.8;
}

.homepage-subscribe-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 22px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(74, 139, 245, 0.3);
    transition: 0.2s;
}

.homepage-subscribe-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.empty-list-placeholder { text-align: center; padding: 40px; color: #999; }

.footer { background: #333; color: #999; text-align: center; padding: 30px 20px; margin-top: 40px; font-size: 14px; }
.footer p { margin-bottom: 8px; }
