/**
 * 关于我们归档页 - 分组布局样式
 *
 * @package Developer_Portfolio
 */

/* ============================================
   页面标题区域
   ============================================ */
.about-grouped-header {
    text-align: center;
    padding: 3rem 0 4rem 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 3rem;
}

.about-grouped-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.about-grouped-header .page-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   分类区块
   ============================================ */
.about-section {
    margin-bottom: 4rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

/* ============================================
   区块标题
   ============================================ */
.about-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    flex-shrink: 0;
}

.section-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.section-count {
    font-size: 0.875rem;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    border-radius: 20px;
    margin-left: 0.5rem;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.section-more:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.section-more svg {
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.section-more:hover svg {
    transform: translateX(4px);
}

/* ============================================
   文章卡片网格
   ============================================ */
.about-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   卡片样式
   ============================================ */
.about-section-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.about-section-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.about-section-card .card-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f3f4f6;
    overflow: hidden;
}

.about-section-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-section-card:hover .card-image img {
    transform: scale(1.05);
}

.about-section-card .card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-section-card .card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.about-section-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-section-card .card-title a:hover {
    color: #0073aa;
}

.about-section-card .card-excerpt {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.about-section-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0073aa;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.about-section-card .card-link:hover {
    color: #005a8a;
}

.about-section-card .card-link svg {
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.about-section-card:hover .card-link svg {
    transform: translateX(4px);
}

/* ============================================
   无图片卡片优化
   ============================================ */
.about-section-card:not(:has(.card-image)) .card-content {
    padding: 2rem 1.5rem;
}

.about-section-card:not(:has(.card-image)) .card-title {
    font-size: 1.25rem;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .about-grouped-header .page-title {
        font-size: 2.5rem;
    }
    
    .about-section-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-grouped-header {
        padding: 2rem 0 3rem 0;
        margin-bottom: 2rem;
    }
    
    .about-grouped-header .page-title {
        font-size: 2rem;
    }
    
    .about-grouped-header .page-subtitle {
        font-size: 1rem;
    }
    
    .about-section {
        margin-bottom: 3rem;
    }
    
    .about-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .section-title-wrapper {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 1.375rem;
    }
    
    .section-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .section-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .about-section-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .about-grouped-header .page-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .about-section-card .card-content {
        padding: 1.25rem;
    }
}

/* ============================================
   深色主题支持（可选）
   ============================================ */
@media (prefers-color-scheme: dark) {
    .about-grouped-header .page-title {
        color: #f9fafb;
    }
    
    .about-grouped-header .page-subtitle {
        color: #9ca3af;
    }
    
    .about-section-header {
        border-bottom-color: #374151;
    }
    
    .section-title {
        color: #f9fafb;
    }
    
    .section-count {
        background: #374151;
        color: #d1d5db;
    }
    
    .section-more {
        background: #374151;
        color: #d1d5db;
    }
    
    .section-more:hover {
        background: #4b5563;
        color: #f9fafb;
    }
    
    .about-section-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .about-section-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    
    .about-section-card .card-image {
        background: #374151;
    }
    
    .about-section-card .card-title {
        color: #f9fafb;
    }
    
    .about-section-card .card-title a:hover {
        color: #60a5fa;
    }
    
    .about-section-card .card-excerpt {
        color: #9ca3af;
    }
    
    .about-section-card .card-link {
        color: #60a5fa;
    }
    
    .about-section-card .card-link:hover {
        color: #93c5fd;
    }
}
