/* 文章列表通用样式（首页、频道页）
 * 使用说明：用于.icw-list、.icw-item、.icw-thumb等，保证首页和频道页风格一致
 */
.icw-list {
    margin: 0 auto;
    max-width: 600px;
    padding: 0;
}
.icw-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    text-decoration: none;
    min-height: 100px;
    position: relative;
    padding: 0 0 0 16px;
    border-bottom: 1px solid #f0f0f0;
}
.icw-item:last-child {
    border-bottom: none;
}
.icw-item:hover {
    box-shadow: 0 4px 16px rgba(58,91,160,0.08);
}
.icw-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.icw-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
    border-radius: 0;
}
.icw-info {
    flex: 1;
    min-width: 0;
    padding: 0 20px 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    height: 80px;
}
.icw-title {
    font-size: 15px;
    color: #222;
    font-weight: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 0;
}
.icw-date {
    font-size: 13px;
    color: #b0b0b0;
    position: absolute;
    right: 20px;
    bottom: 8px;
}
@media (max-width: 700px) {
    .icw-list { max-width: 100%; }
    .icw-item { margin: 0; }
}
.icw-loading-tip, .icw-end-tip {
    text-align: center;
    color: #aaa;
    font-size: 15px;
    padding: 18px 0 10px 0;
}

/* 面包屑导航通用样式（首页、频道页、详情页）
 * 使用说明：用于.breadcrumb、.breadcrumb-home、.breadcrumb-channel等
 */
.breadcrumb {
    width: 100vw;
    max-width: none;
    margin: 0;
    color: #3A5BA0;
    font-size: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.2;
    background: #f7f8fa;
    border-bottom: 1px solid #e5e6eb;
    padding: 14px 0 14px 0;
}
.breadcrumb-home, .breadcrumb-channel {
    color: #3A5BA0;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
    padding: 0 2px;
}
.breadcrumb-home:hover, .breadcrumb-channel:hover {
    color: #1a3366;
    text-decoration: underline;
}
.breadcrumb-home {
    display: flex;
    align-items: center;
}
.breadcrumb-home svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}
.breadcrumb-sep {
    color: #3A5BA0;
    margin: 0 2px;
    font-size: 15px;
    user-select: none;
}
@media (max-width: 600px) {
    .icw-header-bar { padding: 0 15px; }
    .icw-logo-img { height: 50px; }
    .icw-drawer { width: 80vw; min-width: 180px; }
    .breadcrumb { font-size: 14px; gap: 2px; padding: 10px 0 10px 0; }
}

/* 头部和抽屉菜单样式 */
.icw-header-bar {
    width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    position: relative;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 1001;
}
.icw-header-left, .icw-header-center, .icw-header-right {
    display: flex;
    align-items: center;
}
.icw-header-left {
    flex: 0 0 auto;
    justify-content: flex-start;
}
.icw-header-center {
    flex: 1;
    justify-content: center;
}
.icw-header-right {
    flex: 0 0 auto;
    justify-content: flex-end;
}
.icw-logo-img {
    height: 56px;
    display: block;
}
.icw-menu-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.icw-drawer-mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 2000;
}
.icw-drawer-mask.active { display: block; }
.icw-drawer {
    position: fixed;
    top: 0; left: 0;
    width: 240px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 16px rgba(0,0,0,0.08);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    padding-top: 24px;
}
.icw-drawer.active {
    transform: translateX(0);
}
.icw-drawer-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 28px; height: 28px;
    background: none; border: none; cursor: pointer;
    font-size: 24px; color: #888;
}
.icw-drawer-title {
    font-size: 15px;
    font-weight: bold;
    color: #3A5BA0;
    margin: 0 0 8px 14px;
}
.icw-drawer-list {
    list-style: none;
    padding: 0 0 0 0;
    margin: 0;
}
.icw-drawer-list li a {
    display: block;
    padding: 8px 24px;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s;
    line-height: 1.2;
}
.icw-drawer-list li a:hover {
    background: #f5f7fa;
    color: #3A5BA0;
}
@media (max-width: 600px) {
    .icw-header-bar { padding: 0 15px; }
    .icw-logo-img { height: 50px; }
    .icw-drawer { width: 80vw; min-width: 180px; }
}

/* 文章详情页正文样式 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.article-header {
    margin-bottom: 30px;
}
.article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.article-meta span {
    display: flex;
    align-items: center;
}
.article-meta i {
    margin-right: 5px;
    color: #999;
}
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}
.article-content h2, 
.article-content h3 {
    margin: 30px 0 15px;
    color: #222;
}
.article-content h2 {
    font-size: 20px;
}
.article-content h3 {
    font-size: 18px;
}
@media (max-width: 768px) {
    .article-container {
        padding: 15px;
        margin: 0;
        box-shadow: none;
    }
    .article-title {
        font-size: 20px;
    }
    .article-content {
        font-size: 15px;
    }
}
