/* 全局样式重置，贴合网站蓝色基调 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}
.main-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* 左侧语录列表样式 */
.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.quote-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}
.quote-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.12);
}
.quote-content {
    font-size: 20px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 16px;
    position: relative;
    /* 增大左侧内边距，给引号留出空间 → 核心修复 */
    padding-left: 32px;
}
.quote-content::before {
    content: "“";
    position: absolute;
    left: 0;
    top: -8px;
    font-size: 36px;
    color: #0066cc;
    opacity: 0.3;
    font-family: serif;
    /* 额外优化：让引号不挤压文字 */
    pointer-events: none;
}


.quote-meta {
    text-align: right;
    font-size: 16px;
    color: #666;
}
.quote-meta .author {
    color: #0066cc;
    font-weight: 500;
    margin-right: 8px;
}
.quote-meta .source {
    color: #888;
}
.quote-actions {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}
.action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s;
}
.action-item:hover {
    color: #0066cc;
}
.action-item svg {
    width: 18px;
    height: 18px;
}

/* 右侧分类+标签栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f2f5;
}
.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.category-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    background: #f5f7fa;
}
.category-tab.active {
    background: #0066cc;
    color: #fff;
}
.category-tab:hover:not(.active) {
    background: #e8f0fe;
    color: #0066cc;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-item {
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 14px;
    color: #666;
    background: #f5f7fa;
    cursor: pointer;
    transition: all 0.3s;
}
.tag-item.active {
    background: #0066cc;
    color: #fff;
}
.tag-item:hover:not(.active) {
    background: #e8f0fe;
    color: #0066cc;
}

/* 响应式适配 */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}