/* style.css - 线报模板公共样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
    background: #f5f7fb;
    color: #1e2a3e;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.logo h1 {
    font-size: 24px;
    background: linear-gradient(135deg, #6a5acd, #2bbfa0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.logo p {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}
.search-box {
    display: flex;
    gap: 8px;
}
.search-box input {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 30px;
    width: 220px;
    outline: none;
    transition: 0.2s;
}
.search-box input:focus {
    border-color: #6a5acd;
}
.search-box button {
    background: #6a5acd;
    border: none;
    padding: 0 20px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 14px;
}
.search-box button:hover {
    background: #5b4bb5;
}

/* 导航栏 */
.nav {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
}
.nav a {
    padding: 6px 18px;
    background: #f1f3f5;
    border-radius: 40px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 14px;
    transition: 0.2s;
}
.nav a.active, .nav a:hover {
    background: #6a5acd;
    color: white;
}

/* 广告横幅 */
.banner {
    background: linear-gradient(120deg, #2bbfa0, #25947c);
    color: white;
    text-align: center;
    padding: 16px;
    border-radius: 16px;
    margin: 20px 0;
    font-weight: 500;
}

/* 主内容区 */
.main-layout {
    display: flex;
    gap: 30px;
    margin: 30px auto;
}
.content {
    flex: 3;
}
.sidebar {
    flex: 1;
}

/* 列表卡片 */
.section-title {
    font-size: 20px;
    margin-bottom: 16px;
    border-left: 4px solid #6a5acd;
    padding-left: 12px;
}
.line-list {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
    transition: background 0.2s;
}
.line-item:hover {
    background: #fafbff;
}
.line-item .title {
    font-size: 15px;
    font-weight: 500;
}
.line-item .title .top {
    background: #f43f5e;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
}
.line-item .title .cate {
    background: #e9ecef;
    color: #495057;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}
.line-item .time {
    font-size: 12px;
    color: #8b9eb0;
    white-space: nowrap;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    background: white;
    border-radius: 30px;
    text-decoration: none;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}
.pagination a.active {
    background: #6a5acd;
    color: white;
    border-color: #6a5acd;
}

/* 侧边栏 */
.sidebar .widget {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.widget h3 {
    font-size: 16px;
    margin-bottom: 12px;
    border-left: 3px solid #6a5acd;
    padding-left: 10px;
}
.hot-list li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px dashed #edf2f7;
    font-size: 14px;
}
.hot-list li a {
    text-decoration: none;
    color: #2c3e50;
}
.hot-list li a:hover {
    color: #6a5acd;
}
.friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.friend-links a {
    font-size: 12px;
    color: #6c757d;
    text-decoration: none;
}

/* 详情页 */
.detail-container {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    margin: 20px auto;
}
.detail-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}
.detail-info {
    color: #8b9eb0;
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: 24px;
}
.detail-content {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}
.detail-content p {
    margin: 16px 0;
}

/* 搜索页 */
.search-result-stats {
    background: #fff;
    padding: 12px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 30px 0;
    font-size: 13px;
    color: #8b9eb0;
    border-top: 1px solid #e9ecef;
    margin-top: 40px;
    background: #fff;
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box input {
        width: 100%;
    }
    .line-item {
        flex-wrap: wrap;
        gap: 6px;
    }
    .line-item .time {
        margin-left: auto;
    }
}