/* 专栏页面特定样式 */

/* 粒子背景 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 分类筛选按钮 */
.category-filters {
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: 2px solid #7FB069;
    background: white;
    color: #7FB069;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-btn:hover {
    background: rgba(127, 176, 105, 0.1);
    transform: translateY(-2px);
}

.category-btn.active {
    background: #7FB069;
    color: white;
    box-shadow: 0 4px 12px rgba(127, 176, 105, 0.3);
}

/* 专栏卡片 */
.column-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 1;
    transform: translateY(0);
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.column-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.column-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.column-card:hover .column-image {
    transform: scale(1.05);
}

.column-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.adoption-badge {
    background: rgba(255, 107, 53, 0.9);
}

.company-badge {
    background: rgba(45, 90, 39, 0.9);
}

.feedback-badge {
    background: rgba(127, 176, 105, 0.9);
}

.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-indicator:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.column-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.column-meta span {
    display: flex;
    align-items: center;
}

.column-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2D5A27;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-link {
    display: inline-flex;
    align-items: center;
    color: #7FB069;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.column-link:hover {
    color: #2D5A27;
    transform: translateX(5px);
}

/* 分页样式 */
.pagination-container {
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #4b5563;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #7FB069;
    color: #7FB069;
}

.pagination-btn.active {
    background: #7FB069;
    border-color: #7FB069;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 详情页样式 */
.back-button {
    display: inline-flex;
    align-items: center;
    color: #7FB069;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    color: #2D5A27;
    transform: translateX(-5px);
}

.column-detail {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.column-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.column-detail-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.column-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2D5A27;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.column-detail-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
}

.column-detail-image {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
}

.column-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.column-detail-content {
    line-height: 1.8;
    color: #374151;
    font-size: 1.05rem;
}

.column-detail-content .lead {
    font-size: 1.25rem;
    color: #4b5563;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-left: 4px solid #7FB069;
    border-radius: 0.5rem;
}

.column-detail-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D5A27;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.column-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2D5A27;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.column-detail-content p {
    margin-bottom: 1.5rem;
}

.column-video-container {
    margin: 2rem 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
}

.column-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-caption {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.quote-box {
    background: linear-gradient(135deg, rgba(127, 176, 105, 0.1), rgba(45, 90, 39, 0.05));
    border-left: 4px solid #7FB069;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: #7FB069;
    opacity: 0.3;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: #374151;
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.quote-author {
    text-align: right;
    color: #6b7280;
    font-weight: 600;
    padding-left: 2rem;
}

.column-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.column-detail-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
}

.column-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #7FB069;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.column-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-label {
    font-weight: 600;
    color: #374151;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #7FB069;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    background: #7FB069;
    color: white;
    transform: scale(1.1);
}

/* 相关文章 */
.related-articles {
    margin-top: 3rem;
}

.related-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2D5A27;
    margin-bottom: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.25rem;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2D5A27;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-link {
    display: inline-flex;
    align-items: center;
    color: #7FB069;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: #2D5A27;
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .column-detail {
        padding: 2rem;
    }

    .column-detail-title {
        font-size: 2rem;
    }

    .column-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-filters {
        margin-bottom: 1.5rem;
    }

    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .column-detail {
        padding: 1.5rem;
    }

    .column-detail-title {
        font-size: 1.75rem;
    }

    .column-detail-content {
        font-size: 1rem;
    }

    .column-detail-content .lead {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .column-detail-content h2 {
        font-size: 1.5rem;
    }

    .column-gallery {
        grid-template-columns: 1fr;
    }

    .column-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .related-articles .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .column-content {
        padding: 1.25rem;
    }

    .column-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .column-title {
        font-size: 1.1rem;
    }

    .column-excerpt {
        -webkit-line-clamp: 4;
    }

    .column-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.7rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
    }

    .column-detail-meta span {
        font-size: 0.9rem;
    }

    .column-tags {
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .category-filters {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .category-btn {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }

    .column-content {
        padding: 1rem;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }

    .column-detail {
        padding: 1.25rem;
    }

    .column-detail-title {
        font-size: 1.5rem;
    }
}

