/**
 * 专栏前端样式
 */

/* 通用包装器 */
.column-content-wrapper {
    margin: 20px 0;
    padding: 0;
}

/* 专栏标题 */
.column-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* 列表布局 */
.column-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.column-list .column-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-list .column-item:last-child {
    border-bottom: none;
}

.column-list .column-date {
    color: #888;
    font-size: 0.85em;
}

/* 网格布局 */
.column-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.layout-grid .column-item,
.layout-card .column-item {
    border: 1px solid #eaeaea;
    padding: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.layout-grid .column-item:hover,
.layout-card .column-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.layout-grid h4,
.layout-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.layout-grid .column-excerpt,
.layout-card .column-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

/* 卡片布局特有样式 */
.layout-card .column-thumbnail {
    margin: 10px 0;
    overflow: hidden;
    border-radius: 4px;
}

.layout-card .column-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.layout-card .column-thumbnail:hover img {
    transform: scale(1.05);
}

/* 查看全部链接 */
.column-footer {
    margin-top: 15px;
    text-align: right;
}

.column-footer .view-all {
    display: inline-block;
    padding: 5px 15px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.column-footer .view-all:hover {
    background: #e5e5e5;
}

/* 专栏手风琴小组件样式 */
.columns-accordion-header {
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.columns-accordion-header .columns-total {
    font-size: 0.9em;
    color: #888;
}

.columns-accordion-container {
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.column-accordion-item {
    border-bottom: 1px solid #f0f0f0;
}

.column-accordion-item:last-child {
    border-bottom: none;
}

.column-accordion-header {
    padding: 12px 15px;
    background-color: #f9f9f9;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.column-accordion-header:hover {
    background-color: #f0f0f0;
}

.column-accordion-header h4 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
}

.column-accordion-header .post-count {
    font-size: 0.85em;
    color: #888;
    font-weight: normal;
}

.column-accordion-header .toggle-icon {
    transition: transform 0.3s ease;
}

.column-accordion-header.active .toggle-icon {
    transform: rotate(180deg);
}

.column-accordion-content {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.column-accordion-content ul.forum-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.column-accordion-content .forum-title {
    font-size: 1em;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.column-accordion-content .forum-title:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.column-accordion-content .no-posts {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

.column-accordion-content .view-more {
    display: inline-block;
    padding: 5px 12px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.column-accordion-content .view-more:hover {
    background-color: #e5e5e5;
} 