.human-canvas {
    padding: 60px 0;
    background: var(--bg-color);
    height: auto;
}



.human-canvas .human-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.human-canvas .titleArea {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.human-canvas .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.human-canvas .title .highlight {
    color: var(--primary-color);
    position: relative;
}

.human-canvas .title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #0066a8);
    border-radius: 2px;
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 0 20px;
    height: 750px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 600 / 700;
    max-width: 600px;
    width: 100%;
}

#canvas {
    max-width: 100%;
    height: 100%;
    border-radius: 5px;
    cursor: crosshair;
    transition: all 0.3s ease;
}

.category-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category Cards */
.category-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(2, 90, 131, 0.08);
    border-radius: 5px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(2, 90, 131, 0.04);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #0066a8);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(2, 90, 131, 0.12);
    border-color: rgba(2, 90, 131, 0.15);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card.highlight {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(2, 90, 131, 0.2);
    border-color: rgba(2, 90, 131, 0.25);
}

.category-card.highlight::before {
    transform: scaleX(1);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(2, 90, 131, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.category-card:hover .category-icon i {
    color: white;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.category-description {
    font-size: 0.9rem;
    color: var(--text-dark-low);
    line-height: 1.5;
    margin: 0;
}

.category-card:hover .category-title {
    color: var(--primary-color);
}

.category-link {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 60px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.category-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.category-link:hover {
    opacity: 1;
    width: 30px;
}

.category-card.highlight .category-link {
    background: #0066a8;
    width: 40px;
}


/* Interactive Dots */
.body-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.body-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(255, 71, 87, 0.4);
    animation: ripple 2s infinite;
}

.body-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
}

.body-dot:hover::before {
    animation: none;
    border-color: rgba(255, 71, 87, 0.8);
    transform: scale(1.5);
}

/* Tooltip */
.dot-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.dot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.dot-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .human-canvas {
        padding: 50px 0;
    }
    
    .human-canvas .human-wrapper {
        gap: 30px;
    }
    
    .human-canvas .title {
        font-size: 2.3rem;
    }
    
    .canvas-wrapper {
        height: auto;
        padding: 0 15px;
        max-width: 550px;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .category-icon {
        width: 44px;
        height: 44px;
    }
    
    .category-icon i {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .human-canvas {
        padding: 40px 0;
    }
    
    .human-canvas .human-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .human-canvas .title {
        font-size: 2.1rem;
    }
    
    .canvas-wrapper {
        order: -1;
        height: auto;
        margin: 0 auto;
        max-width: 500px;
    }
    
    .category-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .category-card {
        padding: 1.1rem;
    }
    
    .category-title {
        font-size: 1.05rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .human-canvas .title {
        font-size: 1.9rem;
    }
    
    .canvas-wrapper {
        height: auto;
        max-width: 450px;
    }
    
    .category-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .human-canvas {
        padding: 35px 0;
    }
    
    .human-canvas .titleArea {
        margin-bottom: 15px;
    }
    
    .human-canvas .title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .canvas-wrapper {
        height: auto;
        padding: 0 12px;
        max-width: 400px;
    }
    
    #canvas {
        max-width: 100%;
        height: auto;
    }
    
    .category-wrapper {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 400px;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon i {
        font-size: 1.25rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .category-description {
        font-size: 0.85rem;
    }
    
    .category-link {
        width: 25px;
        height: 50px;
        right: 1rem;
    }
    
    .category-link i {
        font-size: 0.85rem;
    }
    
    .body-dot {
        width: 14px;
        height: 14px;
    }
    
    .dot-tooltip {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 640px) {
    .human-canvas {
        padding: 30px 0;
    }
    
    .human-canvas .title {
        font-size: 1.6rem;
    }
    
    .canvas-wrapper {
        height: auto;
        max-width: 350px;
        padding: 0 10px;
    }
    
    .category-card {
        padding: 0.875rem;
    }
    
    .category-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 0.75rem;
    }
    
    .category-icon i {
        font-size: 1.1rem;
    }
    
    .category-title {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .category-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .category-link {
        width: 22px;
        height: 45px;
        right: 0.875rem;
    }
}

@media (max-width: 480px) {
    .human-canvas {
        padding: 25px 0;
    }
    
    .human-canvas .titleArea {
        margin-bottom: 12px;
    }
    
    .human-canvas .title {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .human-canvas .human-wrapper {
        gap: 20px;
    }
    
    .canvas-wrapper {
        height: auto;
        padding: 0 8px;
        max-width: 320px;
    }
    
    .category-wrapper {
        max-width: 320px;
    }
    
    .category-card {
        padding: 0.75rem;
    }
    
    .category-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 0.6rem;
    }
    
    .category-icon i {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .category-description {
        font-size: 0.75rem;
        line-height: 1.5;
    }
    
    .category-link {
        width: 20px;
        height: 40px;
        right: 0.75rem;
    }
    
    .category-link i {
        font-size: 0.75rem;
    }
    
    .body-dot {
        width: 12px;
        height: 12px;
    }
    
    .body-dot::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }
    
    .dot-tooltip {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 360px) {
    .human-canvas .title {
        font-size: 1.2rem;
    }
    
    .canvas-wrapper {
        height: auto;
        max-width: 280px;
    }
    
    .category-wrapper {
        max-width: 280px;
    }
    
    .category-card {
        padding: 0.625rem;
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
    }
    
    .category-icon i {
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 0.85rem;
    }
    
    .category-description {
        font-size: 0.7rem;
    }
}
